Fix filewatcher RemoveDirectory issue.

Windows headers define RemoveDirectory as RemoveDirectoryA.
system/FileWatcher.h needs to be included after any headers that might include windows headers.
This commit is contained in:
Apprentice-Alchemist
2022-04-14 10:47:24 +02:00
parent 442c219fb5
commit 50cc49c66d
2 changed files with 5 additions and 5 deletions

View File

@@ -1,16 +1,15 @@
#ifndef LIME_SYSTEM_FILE_WATCHER_H
#define LIME_SYSTEM_FILE_WATCHER_H
#ifdef RemoveDirectory
#undef RemoveDirectory
#endif
#include <system/CFFI.h>
#include <system/Mutex.h>
#include <map>
#include <string>
#include <vector>
#ifdef RemoveDirectory
#undef RemoveDirectory
#endif
namespace lime {

View File

@@ -1,5 +1,6 @@
#include <system/FileWatcher.h>
// include order is important
#include <efsw/efsw.hpp>
#include <system/FileWatcher.h>
namespace lime {