]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/headers.h
Initial conversion to SDL2.
[quix0rs-blobwars.git] / src / headers.h
index 943f13f07ae48ac431dde15125b823309e51bd3d..510447e58b1c6229fecaf7609ab88127b2f6898d 100644 (file)
@@ -1,5 +1,5 @@
 /*
-Copyright (C) 2004-2010 Parallel Realities
+Copyright (C) 2004-2011 Parallel Realities
 
 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
@@ -18,6 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 */
 
+#include <errno.h>
 #include <stdlib.h>
 #include <string.h>
 #include <math.h>
@@ -29,21 +30,29 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #include <SDL_image/SDL_image.h>
 #include <SDL_mixer/SDL_mixer.h>
 #include <SDL_ttf/SDL_ttf.h>
+#include <SDL_net/SDL_net.h>
 #include <CoreFoundation/CoreFoundation.h>
 extern C_LINKAGE void openHelpURL();
 #ifndef SDL_GetGamma
 extern DECLSPEC int SDLCALL SDL_GetGamma(float *red, float *green, float *blue);
 #endif
 #else
-#include "SDL/SDL.h"
-#include "SDL/SDL_image.h"
-#include "SDL/SDL_mixer.h"
-#include "SDL/SDL_ttf.h"
-#include "SDL/SDL_net.h"
+#include "SDL2/SDL.h"
+#include "SDL2/SDL_image.h"
+#include "SDL2/SDL_mixer.h"
+#include "SDL2/SDL_ttf.h"
+#include "SDL2/SDL_net.h"
 #endif
 
+#ifndef WIN32
 #include <libintl.h>
 #define _(string) gettext(string)
+#else
+#define _(x) (x)
+#define gettext(x) (x)
+#define bindtextdomain(x, y) while(false)
+#define textdomain(x) while(false)
+#endif
 
 #if !defined(OpenBSD) && !defined(FreeBSD)
 #define strlcat(dest, src, n) strncat((dest), (src), (n) - 1)