Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
seriously c++
authordegomme <augustin.degomme@unibas.ch>
Wed, 24 Feb 2016 16:31:38 +0000 (17:31 +0100)
committerdegomme <augustin.degomme@unibas.ch>
Wed, 24 Feb 2016 16:31:38 +0000 (17:31 +0100)
src/include/xbt/win32_ucontext.h

index e11b974..0525911 100644 (file)
 #ifndef UCONTEXT_H
 #define UCONTEXT_H
     
-extern "C"{
+#ifdef _cplusplus
+extern "C"
+{
+#endif
 
 #include <windows.h>
     typedef struct __stack {
@@ -51,5 +54,7 @@ int setcontext(const ucontext_t * ucp);
 int makecontext(ucontext_t *, void (*)(), int, ...);
 int swapcontext(ucontext_t *, const ucontext_t *);
 
+#ifdef _cplusplus
 }
+#endif
 #endif  /* UCONTEXT_H */