Use POSIX macros for linux

This commit is contained in:
chase
2018-05-24 16:24:41 -05:00
committed by Jon Trulson
parent 164e695cd0
commit 4f5e7fe5e3
265 changed files with 394 additions and 394 deletions

View File

@@ -46,7 +46,7 @@
* Campbell, CA 95008
*
*/
#if defined(SVR4) || defined(hpux) || defined(linux) || defined(__NetBSD__)
#if defined(SVR4) || defined(hpux) || defined(__linux__) || defined(__NetBSD__)
#include <limits.h>
#else
#include <sys/limits.h>

View File

@@ -171,7 +171,7 @@ static unsigned char anno_double_bits[] = {
0x0a, 0x20, 0xea, 0x2f, 0x0a, 0x20, 0xea, 0x2f, 0x0a, 0x20, 0xfa, 0x3f,
0x02, 0x08, 0xfe, 0x0f, 0x00, 0x00};
#if defined(SVR4) || defined(linux) || defined(CSRG_BASED)
#if defined(SVR4) || defined(__linux__) || defined(CSRG_BASED)
#include <signal.h>
#else
#include <sys/signal.h>

View File

@@ -63,7 +63,7 @@
#include <ctype.h>
#include <stdio.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
#include <sys/types.h>

View File

@@ -81,7 +81,7 @@
#endif
#include <wchar.h>
#if defined(linux) || defined(CSRG_BASED)
#if defined(__linux__) || defined(CSRG_BASED)
#include <wctype.h>
#endif

View File

@@ -77,7 +77,7 @@
#include <WWL/WXmPushButton.h>
#include <stdlib.h>
#if defined(SVR4) || defined(SYSV) || defined(linux) || defined(CSRG_BASED)
#if defined(SVR4) || defined(SYSV) || defined(__linux__) || defined(CSRG_BASED)
#include <limits.h>
#endif

View File

@@ -71,7 +71,7 @@ private:
};
template <class T>
#if defined(_IBMR2) || defined(linux) || defined(CSRG_BASED) || defined(sun)
#if defined(_IBMR2) || defined(__linux__) || defined(CSRG_BASED) || defined(sun)
class xList : public List_base
#else
class xList : private List_base
@@ -82,7 +82,7 @@ class xList : private List_base
#ifdef SC3
friend class List_Iterator<T>;
#else
#if !defined(_IBMR2) && !defined(linux) && !defined(CSRG_BASED) && !defined(sun)
#if !defined(_IBMR2) && !defined(__linux__) && !defined(CSRG_BASED) && !defined(sun)
template <class T> friend class List_Iterator;
#endif
#endif
@@ -118,7 +118,7 @@ public:
template <class T>
#if defined(_IBMR2) || defined(linux) || defined(CSRG_BASED) || defined(sun)
#if defined(_IBMR2) || defined(__linux__) || defined(CSRG_BASED) || defined(sun)
class List_Iterator : public List_Iterator_base
#else
class List_Iterator : private List_Iterator_base

View File

@@ -32,7 +32,7 @@ class UAS_Base: public Destructable {
UAS_Base ();
virtual ~UAS_Base ();
int operator == (const UAS_Base &);
#if (defined(sparc) && defined(SC3)) || defined(linux)
#if (defined(sparc) && defined(SC3)) || defined(__linux__)
/* SC++ 4.0.1 does not like these being protected */
#else
protected:

View File

@@ -24,7 +24,7 @@
/* Copyright (c) 1995 FUJITSU LIMITED */
/* All Rights Reserved */
#if defined(linux) || defined(CSRG_BASED)
#if defined(__linux__) || defined(CSRG_BASED)
#include <string.h>
#else
#include <strings.h>

View File

@@ -66,7 +66,7 @@ class DtSR_BookcaseSearchEntry : public DtSR_BookcaseEntry
UAS_Pointer<UAS_Common> bcase() { return uas_bcase; }
#if !defined(SC3) && !defined(linux)
#if !defined(SC3) && !defined(__linux__)
protected:
template <class T> friend class UAS_Pointer;

View File

@@ -45,7 +45,7 @@
#define WArgList_h
// Allow setting of resources by name in arg list
#if defined(linux) || defined(CSRG_BASED) || defined(sun)
#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
#define CASTRNAM (char*)
#define CASTVAL (void*)(size_t)
#else

View File

@@ -52,7 +52,7 @@
// /__ \/ F-91405 ORSAY Cedex +33 (1) 69 41 66 29
#include <X11/Intrinsic.h>
#if !defined(linux) && !defined(CSRG_BASED) && !defined(sun)
#if !defined(__linux__) && !defined(CSRG_BASED) && !defined(sun)
#include <generic.h>
#else
#define name2(__n1,__n2) __paste2(__n1,__n2)
@@ -78,7 +78,7 @@ class WComposite;
typedef void (* XtProc)();
#endif
#if defined(linux) || defined(CSRG_BASED) || defined(sun)
#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
#define CASTRNAM (char*)
#define CASTVAL (void*)(size_t)
#else