@@ -58,22 +58,34 @@ SOFTWARE.
5858#define IGFD_DEBUG_BREAK
5959#endif
6060
61- #if defined(__WIN32__) || defined(WIN32) || defined(_WIN32) || defined(__WIN64__) || defined(WIN64) || defined(_WIN64) || defined(_MSC_VER)
61+ #if defined(__WIN32__) || \
62+ defined (WIN32) || \
63+ defined(_WIN32) || \
64+ defined(__WIN64__) || \
65+ defined(WIN64) || \
66+ defined(_WIN64) || \
67+ defined(_MSC_VER)
6268#define _IGFD_WIN_
6369#define stat _stati64
6470#define stricmp _stricmp
6571#include < cctype>
6672// this option need c++17
6773#ifdef USE_STD_FILESYSTEM
6874#include < windows.h>
69- #else
75+ #else // USE_STD_FILESYSTEM
7076#include " dirent/dirent.h" // directly open the dirent file attached to this lib
7177#endif // USE_STD_FILESYSTEM
7278#define PATH_SEP ' \\ '
7379#ifndef PATH_MAX
7480#define PATH_MAX 260
7581#endif // PATH_MAX
76- #elif defined(__linux__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__) || defined(__EMSCRIPTEN__)
82+ #elif defined(__linux__) || \
83+ defined (__FreeBSD__) || \
84+ defined(__DragonFly__) || \
85+ defined(__NetBSD__) || \
86+ defined(__OpenBSD__) || \
87+ defined(__APPLE__) ||\
88+ defined(__EMSCRIPTEN__)
7789#define _IGFD_UNIX_
7890#define stricmp strcasecmp
7991#include < sys/types.h>
@@ -84,8 +96,12 @@ SOFTWARE.
8496#define PATH_SEP ' /'
8597#endif // _IGFD_UNIX_
8698
87- #include " imgui.h"
88- #include " imgui_internal.h"
99+
100+ #ifdef IMGUI_INTERNAL_INCLUDE
101+ #include IMGUI_INTERNAL_INCLUDE
102+ #else // IMGUI_INTERNAL_INCLUDE
103+ #include < imgui_internal.h>
104+ #endif // IMGUI_INTERNAL_INCLUDE
89105
90106// legacy compatibility 1.89
91107#ifndef IM_TRUNC
0 commit comments