#ifndef ILIBDEFS_H # define ILIBDEFS_H /* MAX_THREADS removed by Steve Underwood 1999/12/10 */ #ifdef HAVE_CONFIG_H # include #endif #ifdef HAVE_SYS_TYPES_H # include #endif #include "win32_comp.h" #ifdef USE_LTDL # include #else # define lt_dlexit() 0 # define lt_dlinit() 0 # define lt_dlclose(x) 0 # define lt_dlsym(x,y) 0 # define lt_dlhandle void* # define lt_ptr_t void* # define lt_dlerror() 0 # define lt_dlopenext(x) 0 # define lt_dlsetsearchpath(x) 0 #endif #ifdef STDC_HEADERS # include # include # include # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_UNISTD_H # include #endif #ifdef HAVE_SYS_ENDIAN_H # include #endif #ifdef HAVE_MACHINE_ENDIAN_H # include #endif #ifdef HAVE_ENDIAN_H # include #endif #ifdef HAVE_BYTESWAP_H # include #endif #ifdef HAVE_READDIR_R #ifndef _POSIX_C_SOURCE # define _POSIX_C_SOURCE 199506L #endif #endif #ifdef HAVE_DIRENT_H # include #endif #if SIZEOF_UNSIGNED_LONG_INT == 4 typedef unsigned long word32; typedef signed long sword32; #elif SIZEOF_UNSIGNED_INT == 4 typedef unsigned int word32; typedef signed int sword32; #else # error "Cannot find a 32 bit integer in your system, sorry." #endif #if SIZEOF_UNSIGNED_INT == 2 typedef unsigned int word16; #elif SIZEOF_UNSIGNED_SHORT_INT == 2 typedef unsigned short word16; #else # error "Cannot find a 16 bit integer in your system, sorry." #endif #if SIZEOF_UNSIGNED_CHAR == 1 typedef unsigned char byte; #else # error "Cannot find an 8 bit char in your system, sorry." #endif #ifndef HAVE_MEMMOVE # ifdef HAVE_BCOPY # define memmove(d, s, n) bcopy ((s), (d), (n)) # else # error "Neither memmove nor bcopy exists on your system." # endif #endif #ifdef USE_DMALLOC # include #endif #endif /* LIBDEFS_H */