瀏覽代碼

Move the REGISTERED macro check to the front of the ctkServiceEvent file.

Yonggang Luo 11 年之前
父節點
當前提交
2273ad91ab
共有 1 個文件被更改,包括 7 次插入8 次删除
  1. 7 8
      Libs/PluginFramework/ctkServiceEvent.h

+ 7 - 8
Libs/PluginFramework/ctkServiceEvent.h

@@ -22,23 +22,22 @@
 #ifndef CTKSERVICEEVENT_H
 #define CTKSERVICEEVENT_H
 
+#ifdef REGISTERED
+#error Try to reorder include files (this one first)\
+ or write #undef REGISTERED before including this header.\
+ Cause of this problem may be dcmimage.h, which indirectly\
+ includes windows.h.
+#endif
+
 #include <QSharedDataPointer>
 #include <QDebug>
 #include <QMetaType>
 
 #include "ctkPluginFrameworkExport.h"
-
 #include "ctkServiceReference.h"
 
 class ctkServiceEventData;
 
-#ifdef REGISTERED
-#error Try to reorder include files (this one first)\
- or write #undef REGISTERED before including this header.\
- Cause of this problem may be dcmimage.h, which indirectly\
- includes windows.h.
-#endif
-
 /**
  * \ingroup PluginFramework
  *