Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix misbalanced parentheses in checks for va_copy. [Arnaud Giersch]
[simgrid.git] / src / win32 / compiler / visualc.h
index 6844375..37d93ec 100644 (file)
        #undef HAVE_UNISTD_H    
 #endif
 
-/* 
- * The compiler has the <windows.h> header file. 
- * Process the case of afx.h
-*/
-#if !defined(HAVE_WINDOWS_H)
-       #define HAVE_WINDOWS_H          1
-#endif
-
-/* The compiler has the <winsock2.h> header file. */
-#if !defined(HAVE_WINSOCK2_H)
-       #define HAVE_WINSOCK2_H
-#endif
-
-/*  
- * The compiler has the <winsock.h> header file.
- * Trouble if winsock2.h exists ?  
- */
-#if !defined(HAVE_WINSOCK_H)
-       #define HAVE_WINSOCK_H  1
-#endif
-
 /* The compiler has the <signal.h> header file */
 #if !defined(HAVE_SIGNAL_H)
        #define HAVE_SIGNAL_H   1
@@ -355,12 +334,12 @@ the double. For now, GRAS requires the structures to be compacted. */
 
        #ifndef __VA_COPY_USE_CPP(d, s)
        /* Predefined possible va_copy() implementation (id: CPP) */
-               #define __VA_COPY_USE_CPP(d, s) memcpy((void *)(d), (void *)(s)), sizeof(*(s))
+               #define __VA_COPY_USE_CPP(d, s) memcpy((void *)(d), (void *)(s), sizeof(*(s)))
        #endif
 
        #ifndef __VA_COPY_USE_CPS(d, s)
        /* Predefined possible va_copy() implementation (id: CPS) */
-               #define __VA_COPY_USE_CPS(d, s) memcpy((void *)&(d), (void *)&(s)), sizeof((s))
+               #define __VA_COPY_USE_CPS(d, s) memcpy((void *)&(d), (void *)&(s), sizeof(s))
        #endif
 
        #ifndef __VA_COPY_USE_GCB(d, s)