]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
utf8lib: Remove MSVC exception for stdint.h
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 10 Aug 2020 11:46:42 +0000 (11:46 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 10 Aug 2020 11:46:42 +0000 (11:46 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12893 d7cf8633-e32d-0410-b094-e92efae38249

utf8lib.h

index 543fbfc0ed1c886e578d61a65218cdb17cb190dd..fc5d1be735e5872ef2230baafbf066a9d0967ec7 100644 (file)
--- a/utf8lib.h
+++ b/utf8lib.h
@@ -9,16 +9,9 @@
 // types for unicode strings
 // let them be 32 bit for now
 // normally, whcar_t is 16 or 32 bit, 16 on linux I think, 32 on haiku and maybe windows
-#ifdef _MSC_VER
-typedef __int32 U_int32;
-#else
-#include <stdint.h>
-#include <sys/types.h>
-typedef int32_t U_int32;
-#endif
 
 // Uchar, a wide character
-typedef U_int32 Uchar;
+typedef int32_t Uchar;
 
 // Initialize UTF8, this registers cvars which allows for UTF8 to be disabled
 // completely.