home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
word2x0a.zip
/
source
/
portable.h
< prev
next >
Wrap
C/C++ Source or Header
|
1998-07-21
|
1KB
|
52 lines
/* $Id: portable.h,v 1.2 1997/05/07 23:40:49 dps Exp $ */
#ifndef __word2x_compat_h__
#define __word2x_compat_h__
#ifdef __cplusplus
extern "C" {
#endif
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif /* HAVE_CONFIG_H */
#ifdef __GNUC__
#define alloca __builtin_alloca
#else
#if HAVE_ALLOCA_H
#include <alloca.h>
#else /* Do not have alloca.h */
#ifdef _AIX
#pragma alloca
#else /* not _AIX */
char *alloca();
#endif /* _AIX */
#endif /* HAVE_ALLOCA_H */
#endif /* __GNUC__ */
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif /* HAVE_STDLIB_H */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif /* HAVE_SYS_TYPES_H */
/* Make sure we have some string functions declared */
#ifndef HAVE_DECL_strcasecmp
extern int strcasecmp(const char *, const char *);
#endif
#ifndef HAVE_DECL_strncasecmp
extern int strncasecmp(const char *, const char *, size_t);
#endif
#ifndef HAVE_DECL_strdup
extern char *strdup(const char *);
#endif
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __word2x_compat_h__ */