… | |
… | |
8 | /* |
8 | /* |
9 | * Some handy, nonstandard functions. Note that the original may |
9 | * Some handy, nonstandard functions. Note that the original may |
10 | * be both faster and better. ``better'', if your compiler allows |
10 | * be both faster and better. ``better'', if your compiler allows |
11 | * cleaner use of such functions by proper use of ``const''. |
11 | * cleaner use of such functions by proper use of ``const''. |
12 | * |
12 | * |
13 | * $Id: fptools.h,v 1.7 2009/08/24 06:15:00 root Exp $ |
13 | * $Id: fptools.h,v 1.8 2009/09/15 17:03:36 root Exp $ |
14 | */ |
14 | */ |
15 | |
15 | |
16 | #ifndef FPTOOLS_H__ |
16 | #ifndef FPTOOLS_H__ |
17 | #define FPTOOLS_H__ |
17 | #define FPTOOLS_H__ |
18 | |
18 | |
… | |
… | |
79 | char * TOOLEXPORT _FP_strerror (int); |
79 | char * TOOLEXPORT _FP_strerror (int); |
80 | #ifndef HAVE_MKSTEMP |
80 | #ifndef HAVE_MKSTEMP |
81 | char * TOOLEXPORT _FP_tempnam (char *, char *); |
81 | char * TOOLEXPORT _FP_tempnam (char *, char *); |
82 | #endif /* HAVE_MKSTEMP */ |
82 | #endif /* HAVE_MKSTEMP */ |
83 | |
83 | |
|
|
84 | #if 0 /* API differs too much between systems to make those replacements */ |
84 | #if HAVE_STRCASECMP |
85 | #if HAVE_STRCASECMP |
85 | # define FP_stricmp(a,b) strcasecmp (a, b) |
86 | # define FP_stricmp(a,b) strcasecmp (a, b) |
86 | #endif |
87 | #endif |
87 | |
88 | |
88 | #if HAVE_STRNCASECMP |
89 | #if HAVE_STRNCASECMP |
… | |
… | |
90 | #endif |
91 | #endif |
91 | |
92 | |
92 | #if HAVE_STRCASESTR |
93 | #if HAVE_STRCASESTR |
93 | # define FP_stristr(a,b) strcasestr (a, b) |
94 | # define FP_stristr(a,b) strcasestr (a, b) |
94 | #endif |
95 | #endif |
|
|
96 | #endif |
95 | |
97 | |
96 | #ifdef __cplusplus |
98 | #ifdef __cplusplus |
97 | } |
99 | } |
98 | #endif |
100 | #endif |
99 | #endif |
101 | #endif |