瀏覽代碼

src/top/starpu_top_connection.c: make sure WINVER is defined before including windows include files

Nathalie Furmento 11 年之前
父節點
當前提交
dbc393bed8
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/top/starpu_top_connection.c

+ 2 - 1
src/top/starpu_top_connection.c

@@ -15,11 +15,12 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
+#define WINVER WindowsXP
+
 #include <starpu_config.h>
 
 #ifdef STARPU_HAVE_WINDOWS
 #  include <w32api.h>
-#  define WINVER WindowsXP
 #  include <ws2tcpip.h>
 #else
 #  include <sys/socket.h>