Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
declaration of toupper
[simgrid.git] / src / surf / surf.c
index f4eac31..6bc08c2 100644 (file)
@@ -5,6 +5,8 @@
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
+#include <ctype.h>
+
 #include "surf_private.h"
 #include "xbt/module.h"
 
@@ -75,7 +77,7 @@ const char* __surf_get_initial_path(void)
 
        for(i = 0; i<MAX_DRIVE;i++)
        {
-               if(root[0] == disk_drives_letter_table[i][0])
+               if(toupper(root[0]) == disk_drives_letter_table[i][0])
                        return disk_drives_letter_table[i];
        }