Eliminate the need to use -DQNX by switching to __QNX__, predefined by the compiler.
git-svn-id: svn://10.0.0.236/trunk@31556 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -64,7 +64,7 @@
|
||||
#include <bsd/libc.h>
|
||||
#endif
|
||||
|
||||
#ifdef QNX
|
||||
#ifdef __QNX__
|
||||
#include <unix.h>
|
||||
#endif
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
#include "sunos4.h"
|
||||
#endif
|
||||
|
||||
#ifdef QNX
|
||||
#ifdef __QNX__
|
||||
#define D_INO d_stat.st_ino
|
||||
#else
|
||||
#define D_INO d_ino
|
||||
|
||||
@@ -120,7 +120,7 @@
|
||||
#include <sys/endian.h>
|
||||
#endif
|
||||
|
||||
#ifdef QNX
|
||||
#ifdef __QNX__
|
||||
#define LITTLE_ENDIAN 1234
|
||||
#define BIG_ENDIAN 4321
|
||||
#define BYTE_ORDER LITTLE_ENDIAN
|
||||
|
||||
@@ -412,7 +412,7 @@ init_hash(HTAB *hashp, const char *file, HASHINFO *info)
|
||||
return (NULL);
|
||||
|
||||
#if !defined(_WIN32) && !defined(_WINDOWS) && !defined(macintosh)
|
||||
#ifdef QNX
|
||||
#ifdef __QNX__
|
||||
hashp->BSIZE = statbuf.st_size;
|
||||
#else
|
||||
hashp->BSIZE = statbuf.st_blksize;
|
||||
|
||||
@@ -93,7 +93,7 @@ extern char * strdup (const char * s);
|
||||
XP_END_PROTOS
|
||||
#endif
|
||||
|
||||
#ifndef QNX
|
||||
#ifndef __QNX__
|
||||
#include <memory.h>
|
||||
#endif
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
#define INT64 long
|
||||
#endif
|
||||
#else
|
||||
#if defined(HPUX) || defined(QNX) || defined(SCO) || defined(UNIXWARE)
|
||||
#if defined(HPUX) || defined(__QNX__) || defined(SCO) || defined(UNIXWARE)
|
||||
#define INT64 long
|
||||
#else
|
||||
#define INT64 long long
|
||||
|
||||
Reference in New Issue
Block a user