Merge pull request #403 from ttytm/fix/dirent-conflict

Fix conflict with including dirent
This commit is contained in:
Turiiya 2024-06-09 20:54:50 +02:00 committed by GitHub
commit 4f2ccfb834
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,9 +47,6 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
#if defined(__GNUC__) || defined(__TINYC__)
#include <dirent.h>
#endif
// -- Windows -------------------------
#ifdef _WIN32
@ -58,6 +55,9 @@
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#if defined(__GNUC__) || defined(__TINYC__)
#include <dirent.h>
#endif
#include <windows.h>
#include <direct.h>
#include <io.h>