Use POSIX macros for linux
This commit is contained in:
@@ -242,12 +242,12 @@ DocParser::process(istream &input, ostringstream &output,
|
||||
break;
|
||||
case AttributeSection:
|
||||
{
|
||||
#if !defined(SC3) && !defined(_IBMR2) && !defined(linux) && \
|
||||
#if !defined(SC3) && !defined(_IBMR2) && !defined(__linux__) && \
|
||||
!defined(CSRG_BASED) && !defined(sun)
|
||||
volatile
|
||||
#endif
|
||||
AttributeList *attrs = 0;
|
||||
#if !defined(SC3) && !defined(_IBMR2) && !defined(linux) && \
|
||||
#if !defined(SC3) && !defined(_IBMR2) && !defined(__linux__) && \
|
||||
!defined(CSRG_BASED) && !defined(sun)
|
||||
volatile
|
||||
#endif
|
||||
|
||||
@@ -141,17 +141,17 @@ BinaryOperatorNode::evaluate() const
|
||||
{
|
||||
// calculate children trees and then have feature value do the operation
|
||||
|
||||
#if !defined(SC3) && !defined(_IBMR2) && !defined(linux) && \
|
||||
#if !defined(SC3) && !defined(_IBMR2) && !defined(__linux__) && \
|
||||
!defined(CSRG_BASED) && !defined(sun)
|
||||
volatile
|
||||
#endif
|
||||
FeatureValue *left = 0;
|
||||
#if !defined(SC3) && !defined(_IBMR2) && !defined(linux) && \
|
||||
#if !defined(SC3) && !defined(_IBMR2) && !defined(__linux__) && \
|
||||
!defined(CSRG_BASED) && !defined(sun)
|
||||
volatile
|
||||
#endif
|
||||
FeatureValue *right = 0;
|
||||
#if !defined(SC3) && !defined(_IBMR2) && !defined(linux) && \
|
||||
#if !defined(SC3) && !defined(_IBMR2) && !defined(__linux__) && \
|
||||
!defined(CSRG_BASED) && !defined(sun)
|
||||
volatile
|
||||
#endif
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#if !defined(linux) && !defined(CSRG_BASED) && !defined(sun)
|
||||
#if !defined(__linux__) && !defined(CSRG_BASED) && !defined(sun)
|
||||
#include <osfcn.h>
|
||||
#endif
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#if !defined(linux) && !defined(CSRG_BASED) && !defined(sun)
|
||||
#if !defined(__linux__) && !defined(CSRG_BASED) && !defined(sun)
|
||||
#include <osfcn.h>
|
||||
#endif
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ typedef unsigned int sigset_t;
|
||||
* If your system's vsnprintf returns a char *, not an int,
|
||||
* change the 0 to a 1.
|
||||
*/
|
||||
#if !defined(_AIX) && !defined(linux) && !defined(CSRG_BASED) && !defined(sun)
|
||||
#if !defined(_AIX) && !defined(__linux__) && !defined(CSRG_BASED) && !defined(sun)
|
||||
#define VSPRINTF_CHARSTAR
|
||||
#endif
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#if defined(linux) || defined(CSRG_BASED) || defined(sun)
|
||||
#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
|
||||
#include <unistd.h>
|
||||
#else
|
||||
#include <osfcn.h>
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#if defined(linux) || defined(CSRG_BASED) || defined(sun)
|
||||
#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
|
||||
#include <unistd.h>
|
||||
#else
|
||||
#include <osfcn.h>
|
||||
|
||||
@@ -102,7 +102,7 @@ Destructable::~Destructable()
|
||||
inline void
|
||||
Destructable::destruct()
|
||||
{
|
||||
#if defined(linux) || defined(CSRG_BASED) || defined(sun)
|
||||
#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
|
||||
delete this;
|
||||
#else
|
||||
// Have to call this here since some compilers don't allow
|
||||
|
||||
@@ -38,7 +38,7 @@ public:
|
||||
#else
|
||||
Exception();
|
||||
|
||||
#if defined(linux) && defined(EXC_DEBUG)
|
||||
#if defined(__linux__) && defined(EXC_DEBUG)
|
||||
~Exception()
|
||||
{
|
||||
PRINTF (("Destroying Exception @ %p\n", this));
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#if defined(linux) || defined(CSRG_BASED) || defined(sun)
|
||||
#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
|
||||
#include <unistd.h>
|
||||
#else
|
||||
#include <osfcn.h>
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#if !defined(hpux) && !defined(linux) && !defined(CSRG_BASED) && !defined(sun)
|
||||
#if !defined(hpux) && !defined(__linux__) && !defined(CSRG_BASED) && !defined(sun)
|
||||
#include <sysent.h>
|
||||
#endif
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
#include <sys/utsname.h>
|
||||
#endif
|
||||
|
||||
#if defined(linux)
|
||||
#if defined(__linux__)
|
||||
#include <sys/vfs.h>
|
||||
#include <stdarg.h>
|
||||
#elif defined(_AIX)
|
||||
|
||||
@@ -52,11 +52,11 @@
|
||||
#ifndef _funcs_h
|
||||
#define _funcs_h 1
|
||||
|
||||
#if !defined(linux) && !defined(CSRG_BASED) && !defined(sun)
|
||||
#if !defined(__linux__) && !defined(CSRG_BASED) && !defined(sun)
|
||||
#include <libc.h>
|
||||
#endif
|
||||
#if defined(hpux) || defined(sgi) || \
|
||||
defined(linux) || defined(CSRG_BASED) || defined(sun)
|
||||
defined(__linux__) || defined(CSRG_BASED) || defined(sun)
|
||||
#include <unistd.h>
|
||||
#else
|
||||
#include <sysent.h>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
/* $XConsortium: streambuf.C /main/8 1996/08/21 15:55:14 drk $ */
|
||||
#include "utility/c_streambuf.h"
|
||||
|
||||
#if defined(linux) || defined(CSRG_BASED) || defined(sun)
|
||||
#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
|
||||
#include <stdlib.h>
|
||||
#else
|
||||
#include <libc.h>
|
||||
|
||||
@@ -79,7 +79,7 @@ typedef void (*print_func_ptr_t)(ostream&, const void*);
|
||||
|
||||
//enum Boolean { true, false };
|
||||
|
||||
#if !defined(linux) && !defined(CSRG_BASED)
|
||||
#if !defined(__linux__) && !defined(CSRG_BASED)
|
||||
typedef long mmdb_pos_t;
|
||||
#else
|
||||
typedef int mmdb_pos_t;
|
||||
|
||||
Reference in New Issue
Block a user