A little bit of cleanup.

This commit is contained in:
Přemysl Eric Janouch 2010-09-14 07:19:00 +02:00
parent b230b69539
commit 82cfa12920
5 changed files with 0 additions and 31 deletions

View File

@ -42,12 +42,6 @@ HAVE_RESTRICT)
include (CheckFunctionExists)
CHECK_FUNCTION_EXISTS ("snprintf" HAVE_SNPRINTF)
CHECK_FUNCTION_EXISTS ("sprintf_s" HAVE_SPRINTF_S)
CHECK_FUNCTION_EXISTS ("strdup" HAVE_STRDUP)
CHECK_FUNCTION_EXISTS ("_strdup" HAVE__STRDUP)
CHECK_FUNCTION_EXISTS ("strtok_r" HAVE_STRTOK_R)
CHECK_FUNCTION_EXISTS ("strtok_s" HAVE_STRTOK_S)

View File

@ -21,12 +21,6 @@
#cmakedefine HAVE_SANE___RESTRICT
#cmakedefine HAVE_RESTRICT
#cmakedefine HAVE_SNPRINTF
#cmakedefine HAVE_SPRINTF_S
#cmakedefine HAVE_STRDUP
#cmakedefine HAVE__STRDUP
#cmakedefine HAVE_STRTOK_R
#cmakedefine HAVE_STRTOK_S
#cmakedefine HAVE_THREADSAFE_STRTOK
@ -57,21 +51,6 @@
#endif
#endif /* ! HAVE_SANE___RESTRICT */
#ifndef HAVE_SNPRINTF
#ifdef HAVE_SPRINTF_S
#define snprintf sprintf_s
#endif
#endif /* ! HAVE_SPRINTF */
#ifdef HAVE__STRDUP
#define strdup _strdup
#elif !defined(HAVE_STRDUP)
static inline char *strdup (char *s)
{
return strcpy(malloc(strlen(s) + 1), s);
}
#endif /* HAVE_STRDUP */
#ifndef HAVE_STRTOK_R
#ifdef HAVE_STRTOK_S
#define strtok_r strtok_s

View File

@ -9,7 +9,6 @@
*/
#include <gtk/gtk.h>
#include <stdlib.h>
#include "config.h"

View File

@ -11,7 +11,6 @@
#include <gtk/gtk.h>
#include <lua.h>
/* #include <lauxlib.h> */
#include <stdlib.h>
#include "config.h"

View File

@ -9,8 +9,6 @@
*/
#include <gtk/gtk.h>
#include <stdlib.h>
#include <string.h>
#include "config.h"