Skip to content

Commit 5e5a1d0

Browse files
authored
fix for stricmp or strcasecmp regarding os
1 parent af3dc25 commit 5e5a1d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ImGuiFileDialog/ImGuiFileDialog.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ SOFTWARE.
2525
#include "ImGuiFileDialog.h"
2626
#include "imgui.h"
2727

28-
#include <string.h> // strcmpi
28+
#include <string.h> // stricmp / strcasecmp
2929
#include <sstream>
3030
#include <iomanip>
3131
#include <time.h>
@@ -43,6 +43,7 @@ SOFTWARE.
4343
#define PATH_MAX 260
4444
#endif
4545
#elif defined(LINUX) or defined(APPLE)
46+
#define stricmp strcasecmp
4647
#include <sys/types.h>
4748
#include <dirent.h>
4849
#define PATH_SEP '/'

0 commit comments

Comments
 (0)