Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
put back some data necessary for win build
authorAugustin Degomme <degomme@idpann.imag.fr>
Thu, 12 Dec 2013 13:02:30 +0000 (14:02 +0100)
committerAugustin Degomme <degomme@idpann.imag.fr>
Thu, 12 Dec 2013 13:02:30 +0000 (14:02 +0100)
src/surf/surf_interface.cpp

index 3cfb2fc..624b6cb 100644 (file)
@@ -210,6 +210,43 @@ FILE *surf_fopen(const char *name, const char *mode)
   return NULL;
 }
 
+
+#ifndef MAX_DRIVE
+#define MAX_DRIVE 26
+#endif
+
+#ifdef _XBT_WIN32
+#include <windows.h>
+static const char *disk_drives_letter_table[MAX_DRIVE] = {
+  "A:\\",
+  "B:\\",
+  "C:\\",
+  "D:\\",
+  "E:\\",
+  "F:\\",
+  "G:\\",
+  "H:\\",
+  "I:\\",
+  "J:\\",
+  "K:\\",
+  "L:\\",
+  "M:\\",
+  "N:\\",
+  "O:\\",
+  "P:\\",
+  "Q:\\",
+  "R:\\",
+  "S:\\",
+  "T:\\",
+  "U:\\",
+  "V:\\",
+  "W:\\",
+  "X:\\",
+  "Y:\\",
+  "Z:\\"
+};
+#endif  
+
 /*
  * Returns the initial path. On Windows the initial path is
  * the current directory for the current process in the other