mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-03 18:55:41 +00:00
Improve handling of platform-specific build options (#2162)
* Opt into POSIX functions with `_POSIX_C_SOURCE` before any system headers are `#include`d * Allow user to override `make develop`'s `WARNFLAGS` and `CXXFLAGS` * Use `make develop` on 32-bit Cygwin with sanitizers disabled * Do not unnecessarily redefine `fseek` and `ftell` * Disable a false-positive `-Wno-null-dereference` on 32-bit Cygwin Co-authored-by: ISSOtm <[email protected]>
This commit is contained in:
1 parent
43bdeb873e
commit
b732f59472
23 files changed
+60
-40
No files matched your search
+2
-1
@@ -3,6 +3,8 @@
|
||||
#ifndef RGBDS_FILE_HPP
|
||||
#define RGBDS_FILE_HPP
|
||||
|
||||
#include "platform.hpp"
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <fstream>
|
||||
#include <ios>
|
||||
@@ -12,7 +14,6 @@
|
||||
#include <variant>
|
||||
|
||||
#include "helpers.hpp" // assume
|
||||
#include "platform.hpp"
|
||||
|
||||
class File {
|
||||
std::variant<std::streambuf *, std::filebuf> _file;
|
||||
|
||||
Reference in new issue
Block a user