X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2Fheaders.h;h=510447e58b1c6229fecaf7609ab88127b2f6898d;hb=ba027fd5579c333f6ff7049995f712c1237e9e07;hp=f8501592b908d00e31eadb9302dc95579b755b3a;hpb=6d93c744add4c06b85cf6c6d7e6317536a5c8ec1;p=quix0rs-blobwars.git diff --git a/src/headers.h b/src/headers.h old mode 100755 new mode 100644 index f850159..510447e --- a/src/headers.h +++ b/src/headers.h @@ -1,5 +1,5 @@ /* -Copyright (C) 2004 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 #include #include #include @@ -29,21 +30,34 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include #include #include +#include #include 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 #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) +#define strlcpy(dest, src, n) do {strncpy((dest), (src), (n)); (dest)[(n) - 1] = 0;} while(false) +#endif #include "defs.h"