For building debug builds, no security ever.

This commit is contained in:
n-a-c-h 2008-05-20 12:45:49 +00:00
parent b65f624d58
commit cbe0cf7bbc
1 changed files with 12 additions and 0 deletions

View File

@ -6,6 +6,16 @@
#include <zlib.h> #include <zlib.h>
#include "protect.h" #include "protect.h"
#ifdef _DEBUG
//For building debug builds, no security ever
int ExecutableValid(const char *executable_filename)
{
return(0);
}
#else
static uint8_t *memmem(const uint8_t *haystack, size_t haystacklen, const uint8_t *needle, size_t needlelen) static uint8_t *memmem(const uint8_t *haystack, size_t haystacklen, const uint8_t *needle, size_t needlelen)
{ {
if (needlelen) if (needlelen)
@ -118,3 +128,5 @@ int ExecutableValid(const char *executable_filename)
return(retval); return(retval);
} }
#endif