2 * Copyright (c) 1998-2003, Darren Hiebert
4 * This source code is released for free distribution under the terms of the
5 * GNU General Public License version 2 or (at your option) any later version.
7 * Provides the general (non-ctags-specific) environment assumed by all.
9 #ifndef CTAGS_MAIN_GENERAL_H
10 #define CTAGS_MAIN_GENERAL_H
15 #if defined (HAVE_CONFIG_H)
17 #if (defined (HAVE_FORK) && defined (HAVE_WAITPID) && defined (HAVE_EXECV) && defined (HAVE_PIPE))
33 #if !defined(HAVE_STRCASECMP) && !defined(strcasecmp)
35 # define strcasecmp(s1,s2) stricmp(s1,s2)
37 # define strcasecmp(s1,s2) struppercmp(s1,s2)
41 #if !defined(HAVE_STRNCASECMP) && !defined(strncasecmp)
43 # define strncasecmp(s1,s2,n) strnicmp(s1,s2,n)
45 # define strncasecmp(s1,s2,n) strnuppercmp(s1,s2,n)
61 #if defined (NEED_PROTO_REMOVE) && defined (HAVE_REMOVE)
62 extern int remove (const char *);
65 #if defined (NEED_PROTO_UNLINK) && ! defined (HAVE_REMOVE)
66 extern void *unlink (const char *);
69 #ifdef NEED_PROTO_GETENV
70 extern char *getenv (const char *);
73 #endif /* CTAGS_MAIN_GENERAL_H */