| ... | ... |
@@ -1,7 +1,6 @@ |
| 1 | 1 |
// $package user configuration file. Don't replace when updating library. |
| 2 | 2 |
|
| 3 |
-#ifndef BLARGG_CONFIG_H |
|
| 4 |
-#define BLARGG_CONFIG_H |
|
| 3 |
+#pragma once |
|
| 5 | 4 |
|
| 6 | 5 |
// Uncomment to have Gb_Apu run at 4x normal clock rate (16777216 Hz), useful in |
| 7 | 6 |
// a Game Boy Advance emulator. |
| ... | ... |
@@ -9,5 +8,3 @@ |
| 9 | 8 |
|
| 10 | 9 |
// Uncomment if you get errors in the bool section of blargg_common.h |
| 11 | 10 |
//#define BLARGG_COMPILER_HAS_BOOL 1 |
| 12 |
- |
|
| 13 |
-#endif |
(As an aside, blargg's code style makes me go blarg myself.)
| ... | ... |
@@ -7,27 +7,7 @@ |
| 7 | 7 |
// a Game Boy Advance emulator. |
| 8 | 8 |
#define GB_APU_OVERCLOCK 4 |
| 9 | 9 |
|
| 10 |
-#define GB_APU_CUSTOM_STATE 1 |
|
| 11 |
- |
|
| 12 |
-// Uncomment to enable platform-specific (and possibly non-portable) optimizations. |
|
| 13 |
-//#define BLARGG_NONPORTABLE 1 |
|
| 14 |
- |
|
| 15 |
-// Uncomment if automatic byte-order determination doesn't work |
|
| 16 |
-//#define BLARGG_BIG_ENDIAN 1 |
|
| 17 |
- |
|
| 18 |
-// Uncomment to use zlib for transparent decompression of gzipped files |
|
| 19 |
-//#define HAVE_ZLIB_H |
|
| 20 |
- |
|
| 21 | 10 |
// Uncomment if you get errors in the bool section of blargg_common.h |
| 22 | 11 |
//#define BLARGG_COMPILER_HAS_BOOL 1 |
| 23 | 12 |
|
| 24 |
-// Uncomment to disable out-of-memory exceptions |
|
| 25 |
-//#include <memory> |
|
| 26 |
-//#define BLARGG_NEW new (std::nothrow) |
|
| 27 |
- |
|
| 28 |
-// Use standard config.h if present |
|
| 29 |
-#ifdef HAVE_CONFIG_H |
|
| 30 |
- #include "config.h" |
|
| 31 |
-#endif |
|
| 32 |
- |
|
| 33 | 13 |
#endif |
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,33 @@ |
| 1 |
+// $package user configuration file. Don't replace when updating library. |
|
| 2 |
+ |
|
| 3 |
+#ifndef BLARGG_CONFIG_H |
|
| 4 |
+#define BLARGG_CONFIG_H |
|
| 5 |
+ |
|
| 6 |
+// Uncomment to have Gb_Apu run at 4x normal clock rate (16777216 Hz), useful in |
|
| 7 |
+// a Game Boy Advance emulator. |
|
| 8 |
+#define GB_APU_OVERCLOCK 4 |
|
| 9 |
+ |
|
| 10 |
+#define GB_APU_CUSTOM_STATE 1 |
|
| 11 |
+ |
|
| 12 |
+// Uncomment to enable platform-specific (and possibly non-portable) optimizations. |
|
| 13 |
+//#define BLARGG_NONPORTABLE 1 |
|
| 14 |
+ |
|
| 15 |
+// Uncomment if automatic byte-order determination doesn't work |
|
| 16 |
+//#define BLARGG_BIG_ENDIAN 1 |
|
| 17 |
+ |
|
| 18 |
+// Uncomment to use zlib for transparent decompression of gzipped files |
|
| 19 |
+//#define HAVE_ZLIB_H |
|
| 20 |
+ |
|
| 21 |
+// Uncomment if you get errors in the bool section of blargg_common.h |
|
| 22 |
+//#define BLARGG_COMPILER_HAS_BOOL 1 |
|
| 23 |
+ |
|
| 24 |
+// Uncomment to disable out-of-memory exceptions |
|
| 25 |
+//#include <memory> |
|
| 26 |
+//#define BLARGG_NEW new (std::nothrow) |
|
| 27 |
+ |
|
| 28 |
+// Use standard config.h if present |
|
| 29 |
+#ifdef HAVE_CONFIG_H |
|
| 30 |
+ #include "config.h" |
|
| 31 |
+#endif |
|
| 32 |
+ |
|
| 33 |
+#endif |