浏览代码

Make sure WINVER is defined before anything else happens

Samuel Thibault 11 年之前
父节点
当前提交
2caa6ce3f7
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/top/starpu_top_connection.c

+ 4 - 1
src/top/starpu_top_connection.c

@@ -15,10 +15,13 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
+#ifdef __MINGW32__
+#  define WINVER WindowsXP
+#endif
+
 #include <starpu_config.h>
 
 #ifdef __MINGW32__
-#  define WINVER WindowsXP
 #  include <w32api.h>
 #endif