mirror of https://github.com/libAthena/athena.git
Merge pull request #63 from lioncash/windows
CMakeLists: Define -DNOMINMAX and -DWIN32_LEAN_AND_MEAN on Windows
This commit is contained in:
commit
925fee31c8
|
@ -74,6 +74,11 @@ if(WIN32)
|
||||||
src/athena/FileWriterWin32.cpp
|
src/athena/FileWriterWin32.cpp
|
||||||
src/athena/FileReaderWin32.cpp
|
src/athena/FileReaderWin32.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
target_compile_definitions(athena-core PRIVATE
|
||||||
|
-DNOMINMAX
|
||||||
|
-DWIN32_LEAN_AND_MEAN
|
||||||
|
)
|
||||||
else()
|
else()
|
||||||
target_sources(athena-core PRIVATE
|
target_sources(athena-core PRIVATE
|
||||||
src/athena/FileWriterNix.cpp
|
src/athena/FileWriterNix.cpp
|
||||||
|
|
|
@ -3,9 +3,6 @@
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
|
||||||
#undef min
|
|
||||||
#undef max
|
|
||||||
|
|
||||||
namespace athena::io {
|
namespace athena::io {
|
||||||
FileWriter::FileWriter(std::string_view filename, bool overwrite, bool globalErr)
|
FileWriter::FileWriter(std::string_view filename, bool overwrite, bool globalErr)
|
||||||
: m_fileHandle(0), m_globalErr(globalErr) {
|
: m_fileHandle(0), m_globalErr(globalErr) {
|
||||||
|
|
|
@ -8,9 +8,6 @@
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#endif // HW_RVL
|
#endif // HW_RVL
|
||||||
|
|
||||||
#undef min
|
|
||||||
#undef max
|
|
||||||
|
|
||||||
namespace athena::io {
|
namespace athena::io {
|
||||||
MemoryReader::MemoryReader(const void* data, atUint64 length, bool takeOwnership, bool globalErr)
|
MemoryReader::MemoryReader(const void* data, atUint64 length, bool takeOwnership, bool globalErr)
|
||||||
: m_data(data), m_length(length), m_position(0), m_owns(takeOwnership), m_globalErr(globalErr) {
|
: m_data(data), m_length(length), m_position(0), m_owns(takeOwnership), m_globalErr(globalErr) {
|
||||||
|
|
Loading…
Reference in New Issue