4556531 [rkeene@sledge /home/rkeene/devel/libconfig-0.2.5]$ cat -n compat.h
  1 #ifndef RSK_COMPAT_H
  2 #define RSK_COMPAT_H
  3 
  4 #ifdef HAVE_CONFIG_H
  5 #include "config.h"
  6 #endif
  7 #ifdef __WIN32__
  8 #include "win32.h"
  9 #endif
 10 
 11 #ifndef LC_LINEBUF_LEN
 12 #define LC_LINEBUF_LEN 1024
 13 #endif
 14 
 15 #ifndef HAVE_GETUID
 16 #include "getuid.h"
 17 #endif
 18 #ifndef HAVE_STRTOLL
 19 #include "strtoll.h"
 20 #endif
 21 #ifndef HAVE_STRSEP
 22 #include "strsep.h"
 23 #endif
 24 #ifdef HAVE_INTTYPES_H
 25 #include <inttypes.h>
 26 #endif
 27 #ifdef HAVE_MEMORY_H
 28 #include <memory.h>
 29 #endif
 30 #ifdef HAVE_STDINT_H
 31 #include <stdint.h>
 32 #endif
 33 #ifdef HAVE_STDLIB_H
 34 #include <stdlib.h>
 35 #endif
 36 #ifdef HAVE_STRINGS_H
 37 #include <strings.h>
 38 #endif
 39 #ifdef HAVE_STRING_H
 40 #include <string.h>
 41 #endif
 42 #ifdef HAVE_SYS_STAT_H
 43 #include <sys/stat.h>
 44 #endif
 45 #ifdef HAVE_SYS_TYPES_H
 46 #include <sys/types.h>
 47 #endif
 48 #ifdef HAVE_UNISTD_H
 49 #include <unistd.h>
 50 #endif
 51 #ifdef HAVE_ARPA_INET_H
 52 #include <arpa/inet.h>
 53 #endif
 54 #ifdef HAVE_ERRNO_H
 55 #include <errno.h>
 56 #endif
 57 #ifdef HAVE_FCNTL_H
 58 #include <fcntl.h>
 59 #endif
 60 #ifdef HAVE_NETDB_H
 61 #include <netdb.h>
 62 #endif
 63 #ifdef HAVE_NETINET_IN_H
 64 #include <netinet/in.h>
 65 #endif
 66 #ifdef HAVE_STDARG_H
 67 #include <stdarg.h>
 68 #endif
 69 #ifdef HAVE_STDIO_H
 70 #include <stdio.h>
 71 #endif
 72 #ifdef HAVE_SYS_SOCKET_H
 73 #include <sys/socket.h>
 74 #endif
 75 #ifdef TIME_WITH_SYS_TIME
 76 #include <sys/time.h>
 77 #include <time.h>
 78 #else
 79 #ifdef HAVE_SYS_TIME_H
 80 #include <sys/time.h>
 81 #else
 82 #include <time.h>
 83 #endif
 84 #endif
 85 
 86 #ifdef HAVE_OPENNET_H
 87 #include <opennet.h>
 88 #endif
 89 #ifdef HAVE_LIBOPENNET
 90 #define lc_fopen(path, mode) fopen_net(path, mode)
 91 #define lc_fgets(buf, size, stream) fgets_net(buf, size, stream)
 92 #define lc_feof(stream) feof_net(stream)
 93 #define lc_fclose(stream) fclose_net(stream)
 94 #define LC_FILE NETFILE
 95 #else
 96 #define lc_fopen(path, mode) fopen(path, mode)
 97 #define lc_fgets(buf, size, stream) fgets(buf, size, stream)
 98 #define lc_feof(stream) feof(stream)
 99 #define lc_fclose(stream) fclose(stream)
100 #define LC_FILE FILE
101 #endif
102 
103 #endif
4556532 [rkeene@sledge /home/rkeene/devel/libconfig-0.2.5]$

Click here to go back to the directory listing.
Click here to download this file.
last modified: 2005-10-18 20:50:54