A little bit of cleanup.
This commit is contained in:
parent
b230b69539
commit
82cfa12920
@ -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)
|
||||
|
||||
|
21
config.h.in
21
config.h.in
@ -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
|
||||
|
@ -9,7 +9,6 @@
|
||||
*/
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "config.h"
|
||||
|
||||
|
@ -11,7 +11,6 @@
|
||||
#include <gtk/gtk.h>
|
||||
#include <lua.h>
|
||||
/* #include <lauxlib.h> */
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "config.h"
|
||||
|
||||
|
@ -9,8 +9,6 @@
|
||||
*/
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "config.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user