The function void GLUI_FileBrowser::dir_list_callback(GLUI_Control *glui_object)
does 2 directory changes when gnuc compiler used in windows. Easily seen if you double click on the .. in the browser and it takes you up not to the parent directory but rather the "grand"parent directory.
The problem lines are
because both GNUC and WIN32 are true when using my gnuc compiler in windows ie dev-cpp.
The logical fix seems to be to change to an #elif as follows