define _Pragma for windows

This commit is contained in:
Brad Hefta-Gaub 2014-01-12 17:25:06 -08:00
parent ff72e25a34
commit 441da98063

View file

@ -311,6 +311,10 @@ public:
#define REGISTER_SIMPLE_TYPE_STREAMER(x) static int x##Streamer = \
Bitstream::registerTypeStreamer(QMetaType::type(#x), new SimpleTypeStreamer<x>());
#ifdef WIN32
#define _Pragma __pragma
#endif
/// Declares the metatype and the streaming operators. The last lines
/// ensure that the generated file will be included in the link phase.
#define STRINGIFY(x) #x