- Timestamp:
- 06/02/04 17:31:55 (21 years ago)
- Location:
- ps/trunk/source
- Files:
-
- 6 edited
-
lib/precompiled.h (modified) (1 diff)
-
lib/res/file.cpp (modified) (1 diff)
-
lib/res/tex.cpp (modified) (2 diffs)
-
lib/timer.cpp (modified) (1 diff)
-
lib/types.h (modified) (1 diff)
-
ps/CStr.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ps/trunk/source/lib/precompiled.h
r334 r353 26 26 #pragma warning(disable:4786) // identifier truncated to 255 chars 27 27 #endif 28 29 #include "config.h" -
ps/trunk/source/lib/res/file.cpp
r334 r353 512 512 aio_suspend(&cb, 1, NULL); 513 513 514 p = cb->aio_buf; 514 // posix has aio_buf as volatile void, and gcc doesn't like to cast it 515 // implicitly 516 p = (void *)cb->aio_buf; 515 517 516 518 // return how much was actually transferred, -
ps/trunk/source/lib/res/tex.cpp
r334 r353 40 40 41 41 #ifndef NO_PNG 42 # include <libpng10/png.h> 43 # ifdef _MSC_VER 44 # pragma comment(lib, "libpng10.lib") 42 # ifdef _WIN32 43 # include <libpng10/png.h> 44 # else 45 # include <png.h> 46 # ifdef _MSC_VER 47 # pragma comment(lib, "libpng10.lib") 48 # endif 45 49 # endif 46 50 #endif … … 127 131 { 128 132 UNUSED(size) // only need first 4 chars 129 133 130 134 return *(u32*)ptr == FOURCC('D','D','S',' '); 131 135 } -
ps/trunk/source/lib/timer.cpp
r334 r353 58 58 59 59 gettimeofday(&cur, 0); 60 t = (cur.tv_sec - start.tv_sec) + (cur.tv_ nsec - start.tv_nsec)*1e-6;60 t = (cur.tv_sec - start.tv_sec) + (cur.tv_usec - start.tv_usec)*1e-6; 61 61 62 62 #else -
ps/trunk/source/lib/types.h
r334 r353 8 8 // defines instead of typedefs so we can #undef conflicting decls 9 9 10 #define ulong unsigned long 11 12 #define uint unsigned int 10 // Workaround: GCC won't parse constructor-casts with multi-word types, while 11 // visual studio will. Define uint/long to a namespaced one-word typedef. 12 typedef unsigned long PS_ulong; 13 typedef unsigned int PS_uint; 14 #define ulong PS_ulong 15 #define uint PS_uint 13 16 14 17 #define i8 int8_t -
ps/trunk/source/ps/CStr.cpp
r332 r353 84 84 unsigned int CStr::ToUInt() const 85 85 { 86 return u nsignedint(_ttoi(m_String.c_str()));86 return uint(_ttoi(m_String.c_str())); 87 87 } 88 88 … … 94 94 unsigned long CStr::ToULong() const 95 95 { 96 return u nsignedlong(_ttol(m_String.c_str()));96 return ulong(_ttol(m_String.c_str())); 97 97 } 98 98
Note:
See TracChangeset
for help on using the changeset viewer.
