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 be4a92d6074fb7763468cd0d66bea6ec1e027d16..e657cc3f0de4b7954f59cea7d80b47ab66a632ea 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010-2012. The SimGrid Team.
+/* Copyright (c) 2010-2014. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
 #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");