oh, and remove dependency

This commit is contained in:
mniip 2013-08-22 17:52:32 +04:00
parent 4e9fe8b8e7
commit 4a308cbf66
3 changed files with 1 additions and 15 deletions

View File

@ -285,7 +285,7 @@ if(GetOption('rpi')):
if(GetOption('win')): if(GetOption('win')):
openGLLibs = ['opengl32', 'glew32'] openGLLibs = ['opengl32', 'glew32']
env.Prepend(LIBS=['mingw32', 'ws2_32', 'SDLmain', 'SDL', 'regex']) env.Prepend(LIBS=['mingw32', 'ws2_32', 'SDLmain', 'SDL'])
env.Append(CCFLAGS=['-std=gnu++98']) env.Append(CCFLAGS=['-std=gnu++98'])
env.Append(LIBS=['winmm', 'gdi32']) env.Append(LIBS=['winmm', 'gdi32'])
env.Append(CPPDEFINES=["WIN"]) env.Append(CPPDEFINES=["WIN"])

View File

@ -2,7 +2,6 @@
#include <sstream> #include <sstream>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <regex.h>
#include <sys/types.h> #include <sys/types.h>
#include <cmath> #include <cmath>
#include "Config.h" #include "Config.h"
@ -173,17 +172,6 @@ void clean_text(char *text, int vwidth)
} }
} }
int sregexp(const char *str, char *pattern)
{
int result;
regex_t patternc;
if (regcomp(&patternc, pattern, 0)!=0)
return 1;
result = regexec(&patternc, str, 0, NULL, 0);
regfree(&patternc);
return result;
}
void save_string(FILE *f, char *str) void save_string(FILE *f, char *str)
{ {
int li = strlen(str); int li = strlen(str);

View File

@ -62,8 +62,6 @@ void load_presets(void);
void save_string(FILE *f, char *str); void save_string(FILE *f, char *str);
int sregexp(const char *str, char *pattern);
int load_string(FILE *f, char *str, int max); int load_string(FILE *f, char *str, int max);
void strcaturl(char *dst, char *src); void strcaturl(char *dst, char *src);