diff options
| author | hrydgard <hrydgard@gmail.com> | 2008-10-17 11:30:14 +0000 |
|---|---|---|
| committer | hrydgard <hrydgard@gmail.com> | 2008-10-17 11:30:14 +0000 |
| commit | dcbc8e78d47dabd3762d9c654df01ba57dfd8d4c (patch) | |
| tree | c5fa39bf50e6471e848ac93ac0e173d8aa92530d /Source/Core/Common | |
| parent | 4477f77cf6c37e07433979331c22f362602ac76c (diff) | |
Massive style & comment cleanup of (mostly) GL plugin - also split some large files. A minor speedup for BP writes - merged the two switch()-es.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@899 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common')
| -rw-r--r-- | Source/Core/Common/Src/Common.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Core/Common/Src/Common.h b/Source/Core/Common/Src/Common.h index 1280b3dc30..1d38fcccaa 100644 --- a/Source/Core/Common/Src/Common.h +++ b/Source/Core/Common/Src/Common.h @@ -49,10 +49,12 @@ #endif
#ifdef _WIN32
-#ifdef _WIN32
+
+// By default, MS' stdio implementation does not support 64-bit offsets.
+// This little hack fixes that, keeping the code portable to linux where fseek and fread
+// do support 64-bit offsets in modern distributions.
#define fseek _fseeki64
#define ftell _ftelli64
-#endif
#define POSIX 0
#define NOMINMAX
@@ -128,11 +130,9 @@ typedef union _LARGE_INTEGER #undef max
template<class T>
-inline T min(const T& a, const T& b) {return(a > b ? b : a);}
-
-
+inline T min(const T& a, const T& b) {return a > b ? b : a;}
template<class T>
-inline T max(const T& a, const T& b) {return(a > b ? a : b);}
+inline T max(const T& a, const T& b) {return a > b ? a : b;}
// Byte ordering
|
