#pragma once #ifndef CMAKE_AUTOCONF_H #define CMAKE_AUTOCONF_H #cmakedefine HAVE_STDBOOL_H 1 #cmakedefine HAVE_STRINGS_H 1 #cmakedefine HAVE_WINDOWS_H 1 #cmakedefine HAVE_IO_H 1 #cmakedefine HAVE_UNISTD_H 1 #cmakedefine HAVE__BOOL 1 #cmakedefine HAVE_STRCASECMP 1 #cmakedefine HAVE_STRNCASECMP 1 #cmakedefine HAVE__STRICMP 1 #cmakedefine HAVE_SNPRINTF 1 #cmakedefine HAVE__SNPRINTF 1 #cmakedefine HAVE_ACCESS 1 #cmakedefine HAVE__ACCESS 1 #cmakedefine HAVE_SLEEP 1 #cmakedefine HAVE_USLEEP 1 #cmakedefine HAVE__SLEEP 1 #cmakedefine HAVE_STRDUP 1 #cmakedefine HAVE__STRDUP 1 #cmakedefine HAVE_STRICMP 1 #cmakedefine HAVE__STRCMPL 1 #cmakedefine HAVE_STRCMPL 1 #cmakedefine HAVE__MEMICMP 1 #cmakedefine HAVE_MEMICMP 1 #cmakedefine HAVE__STRLWR 1 #cmakedefine HAVE_STRLWR 1 #cmakedefine HAVE_SYS_STAT_MKDIR 1 #cmakedefine HAVE_DIRECT_MKDIR 1 #cmakedefine HAVE_DIRECT__MKDIR 1 #include #if defined(HAVE_STRINGS_H) #include #endif #ifndef HAVE__ACCESS #ifdef HAVE_ACCESS #define _access(path, mode) access(path, mode) #ifndef _A_RDONLY #define _A_RDONLY R_OK #endif #ifndef _A_WRONLY #define _A_WRONLY W_OK #endif #endif #endif #ifndef _A_RDONLY #ifdef R_OK #define _A_RDONLY R_OK #endif #endif #if !defined(HAVE__MEMICMP) #if defined(HAVE_MEMICMP) #define _memicmp(a, b, n) memicmp(a, b, n) #elif defined(HAVE_STRNCASECMP) #define _memicmp(a, b, n) strncasecmp(a, b, n) #else #define _memicmp(a, b, n) lcp_memicmp(a, b, n) #endif #endif #if !defined(HAVE__STRCMPL) #if defined(HAVE_STRCMPL) #define _strcmpl(a, b) strcmpl(a, b) #elif defined(HAVE__STRICMP) #define _strcmpl(a, b) _stricmp(a, b) #elif defined(HAVE_STRICMP) #define _strcmpl(a, b) stricmp(a, b) #elif defined(HAVE_STRCASECMP) #define _strcmpl(a, b) strcasecmp(a, b) #else #define _strcmpl(a, b) lcp_strcmpl(a, b) #endif #endif #if defined(HAVE_DIRECT__MKDIR) #include #elif defined(HAVE_DIRECT_MKDIR) #include #define _mkdir(a) mkdir(a) #elif defined(HAVE_SYS_STAT_MKDIR) #include #define _mkdir(a) mkdir(a, 0777) #endif #if !defined(HAVE__STRLWR) #if defined(HAVE_STRLWR) #define _strlwr(a) strlwr(a) #else #define _strlwr(a) lcp_strlwr(a) #endif #endif #if !defined(HAVE__STRDUP) #if defined(HAVE_STRDUP) #define _strdup(a) strdup(a) #else #define _strdup(a) lcp_strdup(a) #endif #endif #if !defined(HAVE__SLEEP) #if defined(HAVE_USLEEP) #define _sleep(a) usleep(a) #elif defined(HAVE_SLEEP) #define _sleep(a) sleep((a)/1000) #else #define _sleep(a) lcp_sleep(a) #endif #endif #if !defined(HAVE__SNPRINTF) #if defined(HAVE_SNPRINTF) #define _snprintf snprintf #else #define _snprintf lcp_snprintf #endif #endif #ifndef MIN #define MIN(a,b) ((a) < (b) ? (a) : (b)) #endif #ifndef MAX #define MAX(a,b) ((a) > (b) ? (a) : (b)) #endif #if !defined(DBG_UNREFERENCED_PARAMETER) #define DBG_UNREFERENCED_PARAMETER(x) x #endif #endif