Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Some (partial) fixes for cross-compiling to Windows
[simgrid.git] / buildtools / Cmake / test_prog / prog_sem_open.c
index 56a2c4b..e657cc3 100644 (file)
 #define SEM_FAILED (-1)
 #endif
 
-int main(void) {   
-#ifdef WIN32
-  int s;
-#else
+int main(void) {
   sem_t * s;
-#endif
    s = sem_open("/0", O_CREAT, 0644, 10);
    if (s == SEM_FAILED){
 //     printf("sem_open failed\n");