freebsd-ports/games/xevil/files/patch-cmn__utils.h
Marcelo Araujo 5ba24ed896 - Update MASTER_SITES.
- Fix build using CLANG.
- Add LICENSE.
- Add MAKE_JOBS_SAFE.

PR:		ports/172010
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2012-12-14 07:16:20 +00:00

28 lines
918 B
C

--- cmn/utils.h.orig 2012-05-27 06:52:31.000000000 +0900
+++ cmn/utils.h 2012-05-27 06:53:11.000000000 +0900
@@ -159,7 +159,7 @@
typedef int GameStyleType;
// Possible values of GameStyleType.
-enum {SCENARIOS,LEVELS_ONLY,KILL,DUEL,EXTENDED,TRAINING,LEVELS};
+enum {SCENARIOS,LEVELS_ONLY,KILL,DUEL,EXTENDED,TRAINING,LEVELS,NUM_GAME_STYLES};
@@ -237,13 +237,13 @@
/* EFFECTS: Wrapper for C library strcmp(). Return 0 if strings are the
same. */
- static char* strchr(const char* cs,int c)
+ static const char* strchr(const char* cs,int c)
{return ::strchr(cs,c);}
- static char* strrchr(const char* cs,int c)
+ static const char* strrchr(const char* cs,int c)
{return ::strrchr(cs,c);}
- static char* strstr(const char* cs,const char* ct)
+ static const char* strstr(const char* cs,const char* ct)
{return ::strstr(cs,ct);}
static void strcpy(char* s,const char* ct)