From: Augustin Degomme Date: Thu, 12 Dec 2013 13:02:30 +0000 (+0100) Subject: put back some data necessary for win build X-Git-Tag: v3_11_beta~175 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/4493d506bea568ad5f4a4bb96bab54bd9966bf29?hp=18d23a87c23647366cfffbc61d3f7c632301159c put back some data necessary for win build --- diff --git a/src/surf/surf_interface.cpp b/src/surf/surf_interface.cpp index 3cfb2fcd89..624b6cbdcf 100644 --- a/src/surf/surf_interface.cpp +++ b/src/surf/surf_interface.cpp @@ -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 +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