Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[MSVC] Fix a 'no target architecture' fatal error
authorMartin Quinson <martin.quinson@loria.fr>
Fri, 11 Sep 2015 19:51:06 +0000 (21:51 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Fri, 11 Sep 2015 19:51:10 +0000 (21:51 +0200)
Funny fact: the windows system headers are not self-contained.
http://stackoverflow.com/questions/4845198/fatal-error-no-target-architecture-in-visual-studio

include/xbt/xbt_os_thread.h

index 72ae279..3c336cb 100644 (file)
@@ -27,7 +27,7 @@ typedef struct xbt_os_thread_ *xbt_os_thread_t;
 
 
 #ifdef _XBT_WIN32 /* defined if this is a windows system, 32bits or 64bits) */
-#include <windef.h>
+#include <windows.h>
 typedef DWORD xbt_os_thread_key_t;
 #else /* assume that every non-windows system is POSIX-compatible */