Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OMDev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenModelica
OMDev
Commits
260d55f5
Verified
Commit
260d55f5
authored
4 years ago
by
Adrian Pop
Browse files
Options
Downloads
Patches
Plain Diff
clang/gcc doesn't define __x86__ just __i386__ and __x86_64__
parent
19d7127f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/omniORB-4.2.0-mingw32/include/omniORB4/CORBA_sysdep_trad.h
+569
-569
569 additions, 569 deletions
...mniORB-4.2.0-mingw32/include/omniORB4/CORBA_sysdep_trad.h
with
569 additions
and
569 deletions
lib/omniORB-4.2.0-mingw32/include/omniORB4/CORBA_sysdep_trad.h
+
569
−
569
View file @
260d55f5
// -*- Mode: C++; -*-
// -*- Mode: C++; -*-
// Package : omniORB2
// Package : omniORB2
// CORBA_sysdep.h Created on: 30/1/96
// CORBA_sysdep.h Created on: 30/1/96
// Author : Sai Lai Lo (sll)
// Author : Sai Lai Lo (sll)
//
//
// Copyright (C) 2002-2012 Apasphere Ltd
// Copyright (C) 2002-2012 Apasphere Ltd
// Copyright (C) 1996-1999 AT&T Laboratories Cambridge
// Copyright (C) 1996-1999 AT&T Laboratories Cambridge
//
//
// This file is part of the omniORB library
// This file is part of the omniORB library
//
//
// The omniORB library is free software; you can redistribute it and/or
// The omniORB library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
// modify it under the terms of the GNU Library General Public
// License as published by the Free Software Foundation; either
// License as published by the Free Software Foundation; either
// version 2 of the License, or (at your option) any later version.
// version 2 of the License, or (at your option) any later version.
//
//
// This library is distributed in the hope that it will be useful,
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Library General Public License for more details.
// Library General Public License for more details.
//
//
// You should have received a copy of the GNU Library General Public
// You should have received a copy of the GNU Library General Public
// License along with this library; if not, write to the Free
// License along with this library; if not, write to the Free
// Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA
// 02111-1307, USA
//
//
//
//
// Description:
// Description:
// *** PROPRIETARY INTERFACE ***
// *** PROPRIETARY INTERFACE ***
//
//
// Traditional-style hard-coded system dependencies.
// Traditional-style hard-coded system dependencies.
#ifndef __CORBA_SYSDEP_TRAD_H__
#ifndef __CORBA_SYSDEP_TRAD_H__
#define __CORBA_SYSDEP_TRAD_H__
#define __CORBA_SYSDEP_TRAD_H__
#ifndef _CORBA_WCHAR_DECL
#ifndef _CORBA_WCHAR_DECL
# define _CORBA_WCHAR_DECL wchar_t
# define _CORBA_WCHAR_DECL wchar_t
#endif
#endif
#define HAS_Cplusplus_const_cast
#define HAS_Cplusplus_const_cast
// Unset this define if the compiler does not support const_cast<T*>
// Unset this define if the compiler does not support const_cast<T*>
#define HAS_Cplusplus_reinterpret_cast
#define HAS_Cplusplus_reinterpret_cast
// Unset this define if the compiler does not support reinterpret_cast<T>
// Unset this define if the compiler does not support reinterpret_cast<T>
#define HAS_Cplusplus_catch_exception_by_base
#define HAS_Cplusplus_catch_exception_by_base
// Unset this define if the compiler does not support catching
// Unset this define if the compiler does not support catching
// exceptions by base class.
// exceptions by base class.
#define HAVE_STRDUP 1
#define HAVE_STRDUP 1
// Unset if no strdup()
// Unset if no strdup()
#define HAVE_GETOPT 1
#define HAVE_GETOPT 1
// Unset if no getopt()
// Unset if no getopt()
#define HAVE_UNISTD_H 1
#define HAVE_UNISTD_H 1
// Unset if no unistd.h header
// Unset if no unistd.h header
#ifndef HAVE_GETPID
#ifndef HAVE_GETPID
# define HAVE_GETPID 1
# define HAVE_GETPID 1
#endif
#endif
// Unset if no getpid() function
// Unset if no getpid() function
#define HAVE_LOCALTIME 1
#define HAVE_LOCALTIME 1
// Unset if no localtime() function
// Unset if no localtime() function
#ifndef HAVE_STRFTIME
#ifndef HAVE_STRFTIME
# define HAVE_STRFTIME 1
# define HAVE_STRFTIME 1
#endif
#endif
// Unset if no strftime() function
// Unset if no strftime() function
#define HAVE_GETTIMEOFDAY 1
#define HAVE_GETTIMEOFDAY 1
// Unset if no gettimeofday() function
// Unset if no gettimeofday() function
#define GETTIMEOFDAY_TIMEZONE
#define GETTIMEOFDAY_TIMEZONE
// Unset if gettimeofday() doesn't take a timezone argument
// Unset if gettimeofday() doesn't take a timezone argument
#define HAVE_SIGNAL_H 1
#define HAVE_SIGNAL_H 1
// Unset if no signal.h header
// Unset if no signal.h header
#define HAVE_SIGACTION 1
#define HAVE_SIGACTION 1
// Unset if no sigaction() function
// Unset if no sigaction() function
#define HAVE_SIG_IGN
#define HAVE_SIG_IGN
// Unset if have sigaction() but have no SIG_IGN define
// Unset if have sigaction() but have no SIG_IGN define
#define HAVE_STRCASECMP 1
#define HAVE_STRCASECMP 1
// Unset if no strcasecmp() function
// Unset if no strcasecmp() function
#define HAVE_STRNCASECMP 1
#define HAVE_STRNCASECMP 1
// Unset if no strncasecmp() function
// Unset if no strncasecmp() function
#define HAVE_UNAME 1
#define HAVE_UNAME 1
// Unset if no uname() function
// Unset if no uname() function
#define HAVE_GETHOSTNAME 1
#define HAVE_GETHOSTNAME 1
// Unset if no gethostname() function
// Unset if no gethostname() function
#define HAVE_VSNPRINTF 1
#define HAVE_VSNPRINTF 1
// Unset if no vsnprintf() function
// Unset if no vsnprintf() function
#define HAVE_STRTOUL 1
#define HAVE_STRTOUL 1
// Unset if no strtoul() function
// Unset if no strtoul() function
//
//
// Compiler dependencies
// Compiler dependencies
//
//
#if defined(__GNUG__)
#if defined(__GNUG__)
// GNU G++ compiler
// GNU G++ compiler
# if __GNUG__ == 2 && __GNUC_MINOR__ == 7
# if __GNUG__ == 2 && __GNUC_MINOR__ == 7
# undef HAS_Cplusplus_catch_exception_by_base
# undef HAS_Cplusplus_catch_exception_by_base
# endif
# endif
// Minor version number 91 is for egcs version 1.* Some older
// Minor version number 91 is for egcs version 1.* Some older
// versions of 1.* may not support namespaces properly - this is
// versions of 1.* may not support namespaces properly - this is
// only tested for egcs 1.1.1
// only tested for egcs 1.1.1
# if (__GNUG__ == 2 && (__GNUC_MINOR__ >= 91 || __GNUC_MINOR__ == 9)) || \
# if (__GNUG__ == 2 && (__GNUC_MINOR__ >= 91 || __GNUC_MINOR__ == 9)) || \
(
__GNUG__
>=
3
)
(__GNUG__ >= 3)
# define HAS_Cplusplus_Namespace
# define HAS_Cplusplus_Namespace
# define HAS_Cplusplus_Bool
# define HAS_Cplusplus_Bool
# endif
# endif
// Since gcc 3.3 old IOstream's are considered deprecated.
// Since gcc 3.3 old IOstream's are considered deprecated.
# if (__GNUG__ > 3 || (__GNUG__ == 3 && __GNUC_MINOR__ >= 3))
# if (__GNUG__ > 3 || (__GNUG__ == 3 && __GNUC_MINOR__ >= 3))
# define HAS_Cplusplus_Namespace
# define HAS_Cplusplus_Namespace
# define HAS_Std_Namespace
# define HAS_Std_Namespace
# ifndef HAVE_STD
# ifndef HAVE_STD
# define HAVE_STD 1
# define HAVE_STD 1
# endif
# endif
# endif
# endif
#if defined(__MINGW32__)
#if defined(__MINGW32__)
#define HAS_Cplusplus_Namespace
#define HAS_Cplusplus_Namespace
#define HAS_Std_Namespace
#define HAS_Std_Namespace
#ifndef HAVE_STD
#ifndef HAVE_STD
# define HAVE_STD 1
# define HAVE_STD 1
#endif
#endif
# if defined(_WIN64)
# if defined(_WIN64)
# define SIZEOF_PTR 8
# define SIZEOF_PTR 8
# define SIZEOF_LONG 4
# define SIZEOF_LONG 4
# define SIZEOF_LONG_LONG 8
# define SIZEOF_LONG_LONG 8
#include
<stdio.h>
#include
<stdio.h>
# endif
# endif
#endif
#endif
// GCC claims to support long long on all platforms
// GCC claims to support long long on all platforms
# define HAS_LongLong
# define HAS_LongLong
# define HAS_LongDouble
# define HAS_LongDouble
# define _CORBA_LONGLONG_DECL long long
# define _CORBA_LONGLONG_DECL long long
# define _CORBA_ULONGLONG_DECL unsigned long long
# define _CORBA_ULONGLONG_DECL unsigned long long
# define _CORBA_LONGDOUBLE_DECL long double
# define _CORBA_LONGDOUBLE_DECL long double
# define _CORBA_LONGLONG_CONST(x) (x##LL)
# define _CORBA_LONGLONG_CONST(x) (x##LL)
#elif defined(__DECCXX)
#elif defined(__DECCXX)
// DEC C++ compiler
// DEC C++ compiler
# if __DECCXX_VER >= 60000000
# if __DECCXX_VER >= 60000000
# define HAS_LongLong
# define HAS_LongLong
//# define HAS_LongDouble
//# define HAS_LongDouble
# define _CORBA_LONGLONG_DECL long long
# define _CORBA_LONGLONG_DECL long long
# define _CORBA_ULONGLONG_DECL unsigned long long
# define _CORBA_ULONGLONG_DECL unsigned long long
# define _CORBA_LONGDOUBLE_DECL long double
# define _CORBA_LONGDOUBLE_DECL long double
# define _CORBA_LONGLONG_CONST(x) (x##LL)
# define _CORBA_LONGLONG_CONST(x) (x##LL)
# ifndef NO_Cplusplus_Bool
# ifndef NO_Cplusplus_Bool
# define HAS_Cplusplus_Bool
# define HAS_Cplusplus_Bool
# endif
# endif
# define HAS_Cplusplus_Namespace
# define HAS_Cplusplus_Namespace
# define HAS_Std_Namespace
# define HAS_Std_Namespace
# define HAS_pch
# define HAS_pch
# if __DECCXX_VER < 70390009
# if __DECCXX_VER < 70390009
# define OMNI_REQUIRES_FQ_BASE_CTOR
# define OMNI_REQUIRES_FQ_BASE_CTOR
# endif
# endif
// Uncomment the following lines to enable the use of namespace with cxx v5.6
// Uncomment the following lines to enable the use of namespace with cxx v5.6
// Notice that the source code may have to be patched to compile.
// Notice that the source code may have to be patched to compile.
//# elif __DECCXX_VER >= 50600000
//# elif __DECCXX_VER >= 50600000
//# define HAS_Cplusplus_Namespace
//# define HAS_Cplusplus_Namespace
//# define NEED_DUMMY_RETURN
//# define NEED_DUMMY_RETURN
# else
# else
// Compaq C++ 5.x
// Compaq C++ 5.x
# undef HAS_Cplusplus_const_cast
# undef HAS_Cplusplus_const_cast
# undef HAS_Cplusplus_reinterpret_cast
# undef HAS_Cplusplus_reinterpret_cast
# define OMNI_REQUIRES_FQ_BASE_CTOR
# define OMNI_REQUIRES_FQ_BASE_CTOR
# endif
# endif
#elif defined(__SUNPRO_CC)
#elif defined(__SUNPRO_CC)
// SUN C++ compiler
// SUN C++ compiler
# if __SUNPRO_CC >= 0x500
# if __SUNPRO_CC >= 0x500
# if __SUNPRO_CC_COMPAT >= 5
# if __SUNPRO_CC_COMPAT >= 5
# define HAS_Cplusplus_Namespace
# define HAS_Cplusplus_Namespace
# define HAS_Std_Namespace
# define HAS_Std_Namespace
# define HAS_Cplusplus_Bool
# define HAS_Cplusplus_Bool
# endif
# endif
# endif
# endif
# define HAS_LongLong
# define HAS_LongLong
# define _CORBA_LONGLONG_DECL long long
# define _CORBA_LONGLONG_DECL long long
# define _CORBA_ULONGLONG_DECL unsigned long long
# define _CORBA_ULONGLONG_DECL unsigned long long
# define _CORBA_LONGDOUBLE_DECL long double
# define _CORBA_LONGDOUBLE_DECL long double
# define _CORBA_LONGLONG_CONST(x) (x##LL)
# define _CORBA_LONGLONG_CONST(x) (x##LL)
# define HAS_LongDouble
# define HAS_LongDouble
#elif defined(_MSC_VER)
#elif defined(_MSC_VER)
// Microsoft Visual C++ compiler
// Microsoft Visual C++ compiler
# if _MSC_VER >= 1000
# if _MSC_VER >= 1000
# ifndef NO_Cplusplus_Bool
# ifndef NO_Cplusplus_Bool
# define HAS_Cplusplus_Bool
# define HAS_Cplusplus_Bool
# endif
# endif
# define HAS_Cplusplus_Namespace
# define HAS_Cplusplus_Namespace
# define HAS_Std_Namespace
# define HAS_Std_Namespace
# ifndef HAVE_STD
# ifndef HAVE_STD
# define HAVE_STD 1
# define HAVE_STD 1
# endif
# endif
# endif
# endif
# if defined(_WIN64)
# if defined(_WIN64)
# define SIZEOF_PTR 8
# define SIZEOF_PTR 8
# endif
# endif
# define HAS_LongLong
# define HAS_LongLong
# define _CORBA_LONGLONG_DECL __int64
# define _CORBA_LONGLONG_DECL __int64
# define _CORBA_ULONGLONG_DECL unsigned __int64
# define _CORBA_ULONGLONG_DECL unsigned __int64
# define _CORBA_LONGLONG_CONST(x) (x)
# define _CORBA_LONGLONG_CONST(x) (x)
#elif defined(__DMC__)
#elif defined(__DMC__)
// Digital Mars C++
// Digital Mars C++
# define HAS_Cplusplus_Bool
# define HAS_Cplusplus_Bool
# define HAS_Cplusplus_Namespace
# define HAS_Cplusplus_Namespace
# define HAS_Std_Namespace
# define HAS_Std_Namespace
# define HAVE_STRTOULL
# define HAVE_STRTOULL
# define HAS_LongDouble
# define HAS_LongDouble
# define HAS_LongLong
# define HAS_LongLong
# define _CORBA_LONGDOUBLE_DECL long double
# define _CORBA_LONGDOUBLE_DECL long double
# define _CORBA_LONGLONG_DECL long long
# define _CORBA_LONGLONG_DECL long long
# define _CORBA_ULONGLONG_DECL unsigned long long
# define _CORBA_ULONGLONG_DECL unsigned long long
# define _CORBA_LONGLONG_CONST(x) (x##LL)
# define _CORBA_LONGLONG_CONST(x) (x##LL)
# define OMNI_REQUIRES_FQ_BASE_CTOR
# define OMNI_REQUIRES_FQ_BASE_CTOR
#elif defined(__BCPLUSPLUS__)
#elif defined(__BCPLUSPLUS__)
// Borland C++ Builder
// Borland C++ Builder
# define HAS_Cplusplus_Namespace
# define HAS_Cplusplus_Namespace
# define HAS_Std_Namespace
# define HAS_Std_Namespace
# define HAS_LongLong
# define HAS_LongLong
# define _CORBA_LONGLONG_DECL __int64
# define _CORBA_LONGLONG_DECL __int64
# define _CORBA_ULONGLONG_DECL unsigned __int64
# define _CORBA_ULONGLONG_DECL unsigned __int64
# define _CORBA_LONGLONG_CONST(x) (x)
# define _CORBA_LONGLONG_CONST(x) (x)
# define OMNI_REQUIRES_FQ_BASE_CTOR
# define OMNI_REQUIRES_FQ_BASE_CTOR
#elif defined(__KCC)
#elif defined(__KCC)
// Kai C++
// Kai C++
# define HAS_Cplusplus_Namespace
# define HAS_Cplusplus_Namespace
# define HAS_Std_Namespace
# define HAS_Std_Namespace
# define HAS_Cplusplus_Bool
# define HAS_Cplusplus_Bool
#elif defined(__sgi)
#elif defined(__sgi)
# if _COMPILER_VERSION >= 721
# if _COMPILER_VERSION >= 721
# define HAS_Cplusplus_Namespace
# define HAS_Cplusplus_Namespace
# define HAS_Cplusplus_Bool
# define HAS_Cplusplus_Bool
# define HAS_Cplusplus_const_cast
# define HAS_Cplusplus_const_cast
# define OMNI_REQUIRES_FQ_BASE_CTOR
# define OMNI_REQUIRES_FQ_BASE_CTOR
# define HAS_LongLong
# define HAS_LongLong
# define HAS_LongDouble
# define HAS_LongDouble
# define _CORBA_LONGLONG_DECL long long
# define _CORBA_LONGLONG_DECL long long
# define _CORBA_ULONGLONG_DECL unsigned long long
# define _CORBA_ULONGLONG_DECL unsigned long long
# define _CORBA_LONGDOUBLE_DECL long double
# define _CORBA_LONGDOUBLE_DECL long double
# define _CORBA_LONGLONG_CONST(x) (x##LL)
# define _CORBA_LONGLONG_CONST(x) (x##LL)
# endif
# endif
# if _MIPS_SZINT == 64
# if _MIPS_SZINT == 64
# define SIZEOF_INT 8
# define SIZEOF_INT 8
# endif
# endif
# if _MIPS_SZLONG == 64
# if _MIPS_SZLONG == 64
# define SIZEOF_LONG 8
# define SIZEOF_LONG 8
# endif
# endif
# if _MIPS_SZPTR == 64
# if _MIPS_SZPTR == 64
# define SIZEOF_PTR 8
# define SIZEOF_PTR 8
# endif
# endif
#elif defined(__xlC__)
#elif defined(__xlC__)
# if (__xlC__ <= 0x0306)
# if (__xlC__ <= 0x0306)
# undef HAS_Cplusplus_const_cast
# undef HAS_Cplusplus_const_cast
# undef HAS_Cplusplus_reinterpret_cast
# undef HAS_Cplusplus_reinterpret_cast
# elif (__xlC__ >= 0x0500) // added in xlC 5.0 (a.k.a. Visual Age 5.0)
# elif (__xlC__ >= 0x0500) // added in xlC 5.0 (a.k.a. Visual Age 5.0)
# define HAS_Cplusplus_Bool
# define HAS_Cplusplus_Bool
# define HAS_Cplusplus_Namespace
# define HAS_Cplusplus_Namespace
# define HAS_Std_Namespace
# define HAS_Std_Namespace
# define HAS_LongLong
# define HAS_LongLong
# define HAS_LongDouble
# define HAS_LongDouble
# define _CORBA_LONGLONG_DECL long long
# define _CORBA_LONGLONG_DECL long long
# define _CORBA_ULONGLONG_DECL unsigned long long
# define _CORBA_ULONGLONG_DECL unsigned long long
# define _CORBA_LONGDOUBLE_DECL long double
# define _CORBA_LONGDOUBLE_DECL long double
# define _CORBA_LONGLONG_CONST(x) (x##LL)
# define _CORBA_LONGLONG_CONST(x) (x##LL)
# endif
# endif
#elif defined(__hpux__)
#elif defined(__hpux__)
// Recent versions of HP aCC (A01.18 and A.03.13) have an identifying macro.
// Recent versions of HP aCC (A01.18 and A.03.13) have an identifying macro.
// In the future, we should be able to remove the gcc test.
// In the future, we should be able to remove the gcc test.
// In case this is an older compiler aCC, test if this is gcc, if not assume
// In case this is an older compiler aCC, test if this is gcc, if not assume
// it is aCC.
// it is aCC.
# if defined(__HP_aCC) || !defined(__GNUG__)
# if defined(__HP_aCC) || !defined(__GNUG__)
# define HAS_Cplusplus_Namespace
# define HAS_Cplusplus_Namespace
# define HAS_Cplusplus_Bool
# define HAS_Cplusplus_Bool
# define HAS_LongLong
# define HAS_LongLong
# define _CORBA_LONGLONG_DECL long long
# define _CORBA_LONGLONG_DECL long long
# define _CORBA_ULONGLONG_DECL unsigned long long
# define _CORBA_ULONGLONG_DECL unsigned long long
# define _CORBA_LONGLONG_CONST(x) (x##LL)
# define _CORBA_LONGLONG_CONST(x) (x##LL)
# if defined(_FPWIDETYPES)
# if defined(_FPWIDETYPES)
# define HAS_LongDouble
# define HAS_LongDouble
# define _CORBA_LONGDOUBLE_DECL long double
# define _CORBA_LONGDOUBLE_DECL long double
# endif
# endif
# ifndef HAVE_STD
# ifndef HAVE_STD
# define HAVE_STD 1
# define HAVE_STD 1
# endif
# endif
// ia64 in 64-bit mode
// ia64 in 64-bit mode
# if defined(__LP64__)
# if defined(__LP64__)
# define SIZEOF_CHAR 1
# define SIZEOF_CHAR 1
# define SIZEOF_DOUBLE 8
# define SIZEOF_DOUBLE 8
# define SIZEOF_FLOAT 4
# define SIZEOF_FLOAT 4
# define SIZEOF_INT 4
# define SIZEOF_INT 4
# define SIZEOF_LONG 8
# define SIZEOF_LONG 8
# define SIZEOF_LONG_LONG 8
# define SIZEOF_LONG_LONG 8
# define SIZEOF_PTR 8
# define SIZEOF_PTR 8
# endif
# endif
# endif
# endif
#elif defined(__MWERKS__)
#elif defined(__MWERKS__)
// Metrowerks CodeWarrior Pro 8 or later for Mac OS Classic or Carbon
// Metrowerks CodeWarrior Pro 8 or later for Mac OS Classic or Carbon
# define HAS_Cplusplus_Bool
# define HAS_Cplusplus_Bool
# define HAS_Cplusplus_Namespace
# define HAS_Cplusplus_Namespace
# define HAS_Std_Namespace
# define HAS_Std_Namespace
# define HAS_LongLong
# define HAS_LongLong
# define _CORBA_LONGLONG_DECL long long
# define _CORBA_LONGLONG_DECL long long
# define _CORBA_ULONGLONG_DECL unsigned long long
# define _CORBA_ULONGLONG_DECL unsigned long long
# define _CORBA_LONGLONG_CONST(x) (x##LL)
# define _CORBA_LONGLONG_CONST(x) (x##LL)
#endif
#endif
//
//
// Processor dependencies
// Processor dependencies
//
//
#if defined(__x86__)
#if defined(__x86__)
|| defined(__x86_64__) || defined(__i386__)
# define _OMNIORB_HOST_BYTE_ORDER_ 1
# define _OMNIORB_HOST_BYTE_ORDER_ 1
#if !defined(SIZEOF_LONG_DOUBLE)
#if !defined(SIZEOF_LONG_DOUBLE)
# define SIZEOF_LONG_DOUBLE 12
# define SIZEOF_LONG_DOUBLE 12
#endif
#endif
#elif defined(__sparc__)
#elif defined(__sparc__)
# define _OMNIORB_HOST_BYTE_ORDER_ 0
# define _OMNIORB_HOST_BYTE_ORDER_ 0
#elif defined(__alpha__)
#elif defined(__alpha__)
# define _OMNIORB_HOST_BYTE_ORDER_ 1
# define _OMNIORB_HOST_BYTE_ORDER_ 1
# ifndef __VMS
# ifndef __VMS
# define SIZEOF_LONG 8
# define SIZEOF_LONG 8
# define SIZEOF_INT 4
# define SIZEOF_INT 4
# define SIZEOF_PTR 8
# define SIZEOF_PTR 8
# endif
# endif
#elif defined(__hppa__)
#elif defined(__hppa__)
# define _OMNIORB_HOST_BYTE_ORDER_ 0
# define _OMNIORB_HOST_BYTE_ORDER_ 0
#elif defined(__ia64__)
#elif defined(__ia64__)
// IA64 is big-endian on HPUX, little endian on everything else
// IA64 is big-endian on HPUX, little endian on everything else
# if defined(__hpux__)
# if defined(__hpux__)
# define _OMNIORB_HOST_BYTE_ORDER_ 0
# define _OMNIORB_HOST_BYTE_ORDER_ 0
# else
# else
# define _OMNIORB_HOST_BYTE_ORDER_ 1
# define _OMNIORB_HOST_BYTE_ORDER_ 1
# endif
# endif
#elif defined(__powerpc__)
#elif defined(__powerpc__)
# define _OMNIORB_HOST_BYTE_ORDER_ 0
# define _OMNIORB_HOST_BYTE_ORDER_ 0
#elif defined(__mips__)
#elif defined(__mips__)
# define _OMNIORB_HOST_BYTE_ORDER_ 0
# define _OMNIORB_HOST_BYTE_ORDER_ 0
#elif defined(__s390__)
#elif defined(__s390__)
# define _OMNIORB_HOST_BYTE_ORDER_ 0
# define _OMNIORB_HOST_BYTE_ORDER_ 0
#elif defined(__arm__)
#elif defined(__arm__)
// armv5teb is big-endian
// armv5teb is big-endian
# if defined(__armv5teb__)
# if defined(__armv5teb__)
# define _OMNIORB_HOST_BYTE_ORDER_ 0
# define _OMNIORB_HOST_BYTE_ORDER_ 0
# else
# else
# define _OMNIORB_HOST_BYTE_ORDER_ 1
# define _OMNIORB_HOST_BYTE_ORDER_ 1
# endif
# endif
#elif defined(__m68k__)
#elif defined(__m68k__)
# define _OMNIORB_HOST_BYTE_ORDER_ 0
# define _OMNIORB_HOST_BYTE_ORDER_ 0
#elif defined(__vax__)
#elif defined(__vax__)
# define _OMNIORB_HOST_BYTE_ORDER_ 1
# define _OMNIORB_HOST_BYTE_ORDER_ 1
#endif
#endif
//
//
// OS dependencies
// OS dependencies
//
//
#if defined(__linux__)
#if defined(__linux__)
# define OMNI_SOCKNAME_SIZE_T socklen_t
# define OMNI_SOCKNAME_SIZE_T socklen_t
# define HAVE_STRTOULL 1
# define HAVE_STRTOULL 1
# ifndef HAVE_STD
# ifndef HAVE_STD
# define HAVE_STD 1
# define HAVE_STD 1
# endif
# endif
#elif defined(__sunos__)
#elif defined(__sunos__)
# ifndef HAVE_STD
# ifndef HAVE_STD
# define HAVE_STD 1
# define HAVE_STD 1
# endif
# endif
# define HAVE_STRTOULL 1
# define HAVE_STRTOULL 1
# define HAVE_ISNANORINF
# define HAVE_ISNANORINF
# define HAVE_NAN_H
# define HAVE_NAN_H
# if __OSVERSION__ == 4
# if __OSVERSION__ == 4
# define OMNI_SOCKNAME_SIZE_T int
# define OMNI_SOCKNAME_SIZE_T int
# elif __OSVERSION__ == 5 || __OSVERSION__ == 6
# elif __OSVERSION__ == 5 || __OSVERSION__ == 6
# define OMNI_SOCKNAME_SIZE_T size_t
# define OMNI_SOCKNAME_SIZE_T size_t
# else
# else
# define OMNI_SOCKNAME_SIZE_T socklen_t
# define OMNI_SOCKNAME_SIZE_T socklen_t
# endif
# endif
# if __OSVERSION__ == 5 && (!defined(__GNUG__) || __GNUG__ < 3)
# if __OSVERSION__ == 5 && (!defined(__GNUG__) || __GNUG__ < 3)
# define NEED_GETHOSTNAME_PROTOTYPE
# define NEED_GETHOSTNAME_PROTOTYPE
# endif
# endif
#elif defined(__hpux__)
#elif defined(__hpux__)
#elif defined(__irix__)
#elif defined(__irix__)
# undef HAVE_GETHOSTNAME
# undef HAVE_GETHOSTNAME
#elif defined(__freebsd__)
#elif defined(__freebsd__)
# define HAVE_STRTOUQ 1
# define HAVE_STRTOUQ 1
# if __OSVERSION__ >= 4
# if __OSVERSION__ >= 4
# define OMNI_SOCKNAME_SIZE_T socklen_t
# define OMNI_SOCKNAME_SIZE_T socklen_t
# endif
# endif
#elif defined(__aix__)
#elif defined(__aix__)
# define OMNI_SOCKNAME_SIZE_T size_t
# define OMNI_SOCKNAME_SIZE_T size_t
#elif defined(__SINIX__)
#elif defined(__SINIX__)
# undef GETTIMEOFDAY_TIMEZONE
# undef GETTIMEOFDAY_TIMEZONE
# define OMNI_SOCKNAME_SIZE_T size_t
# define OMNI_SOCKNAME_SIZE_T size_t
#elif defined(__uw7__)
#elif defined(__uw7__)
# define OMNI_SOCKNAME_SIZE_T size_t
# define OMNI_SOCKNAME_SIZE_T size_t
#elif defined(__darwin__)
#elif defined(__darwin__)
# define HAVE_STRTOUQ 1
# define HAVE_STRTOUQ 1
# define OMNI_SOCKNAME_SIZE_T socklen_t
# define OMNI_SOCKNAME_SIZE_T socklen_t
# define HAVE_STRUCT_SOCKADDR_IN_SIN_ZERO 1
# define HAVE_STRUCT_SOCKADDR_IN_SIN_ZERO 1
# define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
# define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
#elif defined(__nextstep__)
#elif defined(__nextstep__)
# undef HAVE_STRDUP
# undef HAVE_STRDUP
# undef HAVE_UNAME
# undef HAVE_UNAME
# undef HAVE_SIGACTION
# undef HAVE_SIGACTION
# define HAVE_SIGVEC
# define HAVE_SIGVEC
#elif defined(__atmos__)
#elif defined(__atmos__)
# define NO_FLOAT
# define NO_FLOAT
#elif defined(__VMS)
#elif defined(__VMS)
# define OMNI_SOCKNAME_SIZE_T size_t
# define OMNI_SOCKNAME_SIZE_T size_t
# undef HAVE_STRDUP
# undef HAVE_STRDUP
# if __VMS_VER < 70000000
# if __VMS_VER < 70000000
# undef HAVE_GETOPT
# undef HAVE_GETOPT
# undef HAVE_STRCASECMP
# undef HAVE_STRCASECMP
# undef HAVE_STRNCASECMP
# undef HAVE_STRNCASECMP
# undef HAVE_GETTIMEOFDAY
# undef HAVE_GETTIMEOFDAY
# endif
# endif
# if __CRTL_VER >= 70311000
# if __CRTL_VER >= 70311000
# define HAVE_POLL
# define HAVE_POLL
# endif
# endif
#elif defined(__WIN32__)
#elif defined(__WIN32__)
# define SIZEOF_WCHAR 2
# define SIZEOF_WCHAR 2
# undef HAVE_UNISTD_H
# undef HAVE_UNISTD_H
# undef HAVE_GETOPT
# undef HAVE_GETOPT
# undef HAVE_GETTIMEOFDAY
# undef HAVE_GETTIMEOFDAY
# undef HAVE_GETPID
# undef HAVE_GETPID
# undef HAVE_SIGNAL_H
# undef HAVE_SIGNAL_H
# undef HAVE_SIGACTION
# undef HAVE_SIGACTION
# undef HAVE_STRCASECMP
# undef HAVE_STRCASECMP
# undef HAVE_STRNCASECMP
# undef HAVE_STRNCASECMP
# undef HAVE_UNAME
# undef HAVE_UNAME
# undef HAVE_GETHOSTNAME
# undef HAVE_GETHOSTNAME
# undef HAVE_POLL
# undef HAVE_POLL
#if defined(_MSC_VER) && _MSC_VER >= 1300 // VC++ 7 or greater
#if defined(_MSC_VER) && _MSC_VER >= 1300 // VC++ 7 or greater
# define HAVE_GETADDRINFO 1
# define HAVE_GETADDRINFO 1
# define HAVE_GETNAMEINFO 1
# define HAVE_GETNAMEINFO 1
# define HAVE_STRUCT_SOCKADDR_IN6 1
# define HAVE_STRUCT_SOCKADDR_IN6 1
# define HAVE_STRUCT_SOCKADDR_STORAGE 1
# define HAVE_STRUCT_SOCKADDR_STORAGE 1
#endif
#endif
#ifdef __MINGW32__
#ifdef __MINGW32__
# define HAVE_STRCASECMP
# define HAVE_STRCASECMP
# define HAVE_STRNCASECMP
# define HAVE_STRNCASECMP
# define HAVE_VPRINTF
# define HAVE_VPRINTF
#endif
#endif
#elif defined(__vxWorks__)
#elif defined(__vxWorks__)
# undef HAVE_GETTIMEOFDAY
# undef HAVE_GETTIMEOFDAY
# undef HAVE_STRCASECMP
# undef HAVE_STRCASECMP
# undef HAVE_STRNCASECMP
# undef HAVE_STRNCASECMP
#elif defined(__macos__)
#elif defined(__macos__)
# define SIZEOF_WCHAR 2
# define SIZEOF_WCHAR 2
# define OMNI_SOCKNAME_SIZE_T socklen_t
# define OMNI_SOCKNAME_SIZE_T socklen_t
# define HAVE_STRTOULL 1
# define HAVE_STRTOULL 1
#endif
#endif
//
//
// Default flag values if not already overridden above
// Default flag values if not already overridden above
//
//
#ifndef SIZEOF_BOOL
#ifndef SIZEOF_BOOL
#define SIZEOF_BOOL 1
#define SIZEOF_BOOL 1
#endif
#endif
#ifndef SIZEOF_LONG
#ifndef SIZEOF_LONG
#define SIZEOF_LONG 4
#define SIZEOF_LONG 4
#endif
#endif
#ifndef SIZEOF_INT
#ifndef SIZEOF_INT
#define SIZEOF_INT 4
#define SIZEOF_INT 4
#endif
#endif
#ifndef SIZEOF_PTR
#ifndef SIZEOF_PTR
#define SIZEOF_PTR 4
#define SIZEOF_PTR 4
#endif
#endif
#ifndef SIZEOF_LONG_DOUBLE
#ifndef SIZEOF_LONG_DOUBLE
#define SIZEOF_LONG_DOUBLE 16
#define SIZEOF_LONG_DOUBLE 16
#endif
#endif
#ifndef SIZEOF_WCHAR
#ifndef SIZEOF_WCHAR
# define SIZEOF_WCHAR 4
# define SIZEOF_WCHAR 4
#endif
#endif
#ifndef OMNI_SOCKNAME_SIZE_T
#ifndef OMNI_SOCKNAME_SIZE_T
# define OMNI_SOCKNAME_SIZE_T int
# define OMNI_SOCKNAME_SIZE_T int
#endif
#endif
#ifndef _OMNIORB_HOST_BYTE_ORDER_
#ifndef _OMNIORB_HOST_BYTE_ORDER_
# error "The byte order of this platform is unknown"
# error "The byte order of this platform is unknown"
#endif
#endif
#endif // __CORBA_SYSDEP_TRAD_H__
#endif // __CORBA_SYSDEP_TRAD_H__
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment