NOISSUE fix some warning on linux related to the GNU C library

This commit is contained in:
Petr Mrázek 2017-03-26 20:40:03 +02:00
parent da4ae1bc1e
commit 3aa28bd64a

View File

@ -3,6 +3,14 @@
#include "multimc_logic_export.h" #include "multimc_logic_export.h"
#include <QString> #include <QString>
// NOTE: apparently the GNU C library pollutes the global namespace with these... undef them.
#ifdef major
#undef major
#endif
#ifdef minor
#undef minor
#endif
class MULTIMC_LOGIC_EXPORT JavaVersion class MULTIMC_LOGIC_EXPORT JavaVersion
{ {
friend class JavaVersionTest; friend class JavaVersionTest;