]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - libs/generic/object.h
Centralise compile checks
[xonotic/netradiant.git] / libs / generic / object.h
index 5677a0e3428253338a1cae403f3598808458eb2b..084f760c7e465ce12f18382abc3f45e9437a7958 100644 (file)
 #if !defined( INCLUDED_GENERIC_OBJECT_H )
 #define INCLUDED_GENERIC_OBJECT_H
 
+#include "globaldefs.h"
+
 /// \file
 /// \brief Convenience functions (syntactic sugar) to wrap explicit constructor (aka in-place 'new') and destructor calls.
 ///
 /// Use makeReference() to wrap non-const-reference constructor parameters.
 
-#if _MSC_VER > 1000 && defined( WIN32 )
+#if GDEF_COMPILER_MSVC && _MSC_VER > 1000
 #pragma warning(disable:4345) // behavior change: an object of POD type constructed with an initializer of the form () will be default-initialized
 #endif