mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Build with pedantically standard C++ (#1309)
* Remove array designators (not standard C++) * Build with pedantically standard C++
This commit is contained in:
@@ -55,13 +55,6 @@
|
||||
#define NONNULL(ptr) *ptr // ptr[static 1]
|
||||
#define restrict
|
||||
|
||||
// C++ doesn't support designated array initializers, but they're a gcc extension
|
||||
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
|
||||
# define AT(index) [index] =
|
||||
#else
|
||||
# define AT(index)
|
||||
#endif
|
||||
|
||||
// MSVC uses a different name for O_RDWR, and needs an additional _O_BINARY flag
|
||||
#ifdef _MSC_VER
|
||||
# include <fcntl.h>
|
||||
|
||||
Reference in New Issue
Block a user