mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-01-29 12:40:01 +01:00
oh, and remove dependency
This commit is contained in:
parent
4e9fe8b8e7
commit
4a308cbf66
@ -285,7 +285,7 @@ if(GetOption('rpi')):
|
||||
|
||||
if(GetOption('win')):
|
||||
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(LIBS=['winmm', 'gdi32'])
|
||||
env.Append(CPPDEFINES=["WIN"])
|
||||
|
12
src/Misc.cpp
12
src/Misc.cpp
@ -2,7 +2,6 @@
|
||||
#include <sstream>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <regex.h>
|
||||
#include <sys/types.h>
|
||||
#include <cmath>
|
||||
#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)
|
||||
{
|
||||
int li = strlen(str);
|
||||
|
@ -62,8 +62,6 @@ void load_presets(void);
|
||||
|
||||
void save_string(FILE *f, char *str);
|
||||
|
||||
int sregexp(const char *str, char *pattern);
|
||||
|
||||
int load_string(FILE *f, char *str, int max);
|
||||
|
||||
void strcaturl(char *dst, char *src);
|
||||
|
Loading…
x
Reference in New Issue
Block a user