1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811
|
// -*- Mode: C++; -*-
// Package : omniORB2
// CORBA_sysdep.h Created on: 30/1/96
// Author : Sai Lai Lo (sll)
//
// Copyright (C) 1996-1999 AT&T Laboratories Cambridge
//
// This file is part of the omniORB library
//
// The omniORB library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
// License as published by the Free Software Foundation; either
// version 2 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Library General Public License for more details.
//
// You should have received a copy of the GNU Library General Public
// License along with this library; if not, write to the Free
// Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA
//
//
// Description:
// *** PROPRIETORY INTERFACE ***
//
// Define a set of flags in C++ macros. These flags provide information
// about the system and the compiler used.
//
/*
$Log: CORBA_sysdep.h,v $
Revision 1.1.2.23 2001/06/01 13:56:57 sll
Long long define for HPUX.
External CPP define guard for IR.h
Revision 1.1.2.22 2001/05/23 10:54:43 dpg1
Long long defines for SGI.
Revision 1.1.2.21 2001/04/23 14:50:20 dpg1
Extend GCC check to cope with GCC 3.
Revision 1.1.2.20 2000/12/04 13:46:43 dpg1
Support PowerPC Linux.
Revision 1.1.2.19 2000/11/23 13:05:04 sll
Added support for KAI C++ 4.0.
Revision 1.1.2.18 2000/09/25 11:03:27 dpg1
Remove use of _T as a template class name
Revision 1.1.2.17 2000/08/17 09:00:53 dpg1
GCC claims to support long long on all platforms.
Revision 1.1.2.16 2000/08/10 10:17:53 sll
Found the workaround for MSVC++ so that exceptions can be caught by base
class. All the copy ctor from the most derived to the base classes must be
public. Previously it was protected. CORBA exceptions can now be caught by
base class on win32 platforms.
Revision 1.1.2.15 2000/08/07 15:34:33 dpg1
Partial back-port of long long from omni3_1_develop.
Revision 1.1.2.14 2000/07/07 10:31:33 sll
DEC C++ 6.{0,1} on Digital Unix needs OMNI_REQUIRES_FQ_BASE_CTOR.
Revision 1.1.2.13 2000/07/07 10:18:33 sll
Fixed unbalanced #if #endif.
Revision 1.1.2.12 2000/07/05 11:13:56 dpg1
Untested support for AIX with xlC 5.
Revision 1.1.2.11 2000/06/30 14:12:07 dpg1
Minor fixes for FreeBSD.
Revision 1.1.2.10 2000/06/27 16:23:24 sll
Merged OpenVMS port.
Revision 1.1.2.9 2000/03/23 16:27:47 djr
Added NEED_DUMMY_RETURN to egcs/gcc.
Revision 1.1.2.8 2000/03/10 16:45:52 dpg1
MSVC++ can't catch exceptions by base class.
Revision 1.1.2.7 2000/02/23 12:57:15 dpg1
Some support for NextStep x86.
Revision 1.1.2.6 2000/02/04 14:48:09 djr
Added a couple of feature test macros.
Revision 1.1.2.5 2000/01/27 11:11:24 djr
Correction.
Revision 1.1.2.4 2000/01/27 10:55:44 djr
Mods needed for powerpc_aix. New macro OMNIORB_BASE_CTOR to provide
fqname for base class constructor for some compilers.
Revision 1.1.2.3 1999/10/21 10:59:20 djr
*** empty log message ***
Revision 1.1.2.2 1999/09/30 11:49:26 djr
Implemented catching user-exceptions in GIOP_S for all compilers.
Revision 1.1.2.1 1999/09/24 09:51:38 djr
Moved from omniORB2 + some new files.
Revision 1.39 1999/08/30 18:43:34 sll
Removed ENABLE_CLIENT_IR_SUPPORT as the default define. Application code
should define this macro if the code is to act as a client to an
interface repository.
Revision 1.38 1999/08/15 13:52:40 sll
Updated compiler defines for SGI and AIX.
Revision 1.37 1999/06/26 17:53:40 sll
Use namespace if compiler is SGI MIPSpro 7.2.1 or HP aCC.
Added support for Irix 6.5 in 64bit mode.
Revision 1.36 1999/06/18 21:12:16 sll
Updated copyright notice.
Revision 1.35 1999/06/18 20:35:41 sll
Replaced _LC_attr with _core_attr and _dyn_attr.
Revision 1.34 1999/06/02 16:40:56 sll
Enable IR client support on all platforms
Revision 1.33 1999/05/31 14:07:34 sll
Added flags for SUN C++ 5.0.
Revision 1.32 1999/05/26 12:41:51 sll
ENABLE_CLIENT_IR_SUPPORT again.
Revision 1.31 1999/05/26 12:23:11 sll
Enable IR client support when namespace is supported.
Revision 1.30 1999/04/06 08:30:03 djr
MSVC 6.0 is also not FD compliant regarding declaration of static const
integral and enum types.
Revision 1.29 1999/01/07 18:17:51 djr
Enable namespaces on egcs 1.1.1
MSVC and VMS platforms do not have strcasecmp and strncasecmp.
Revision 1.28 1999/01/05 12:31:14 sll
Correct typo in #error messages.
Revision 1.27 1998/10/20 15:58:58 sll
Added support for Alpha NT.
Revision 1.26 1998/10/08 10:53:19 sll
Disable MSVC++ warnings C4768 and C4250.
Revision 1.25 1998/09/23 15:25:51 sll
Workaround for SUN C++ compiler Template.DB code regeneration bug.
Revision 1.24 1998/08/22 12:52:13 sll
Added sysconfig for Irix + SGI C++ compiler.
Revision 1.23 1998/08/19 16:03:43 sll
Updated section for DEC C++ and MSVC++ to remove NO_Koenig_Lookup because
this is no longer necessary with the new way of generating binary
operators <<= and >>=.
Revision 1.22 1998/08/15 14:23:26 sll
Added macro No_Koenig_Lookup to MSVC++ and DEC C++ 6.0
Remove NEED_DUMMY_RETURN if the compiler is DEC C++ > 5.7
Revision 1.21 1998/08/14 13:56:21 sll
Added HAS_pch if the compiler is DEC C++ v6.0
Revision 1.20 1998/08/11 11:44:42 sll
Added #include <stdlib.h> for pre 7.x VMS platform.
Revision 1.19 1998/04/18 10:06:25 sll
Added section for Borland C++. (Not actually working yet.)
Revision 1.18 1998/04/09 19:17:59 sll
Extra macros defined for specifying initializers in the declaration
of integral constants.
Revision 1.17 1998/04/08 16:11:20 sll
Added support for Reliant UNIX 5.43.
Revision 1.16 1998/04/07 20:07:06 sll
Added the use of namespace.
Revision 1.15 1998/03/25 14:24:12 sll
Added #define EGCS_WORKAROUND for gcc compiler. This activate a
workaround for a bug in post-1.0 egcs snapshots. Can be removed if
the bug is fixed in future version.
* Revision 1.14 1998/01/20 16:45:57 sll
* Added support for OpenVMS.
*
Revision 1.13 1997/12/09 20:40:21 sll
Various platform specific updates.
Revision 1.12 1997/08/21 22:22:12 sll
Support for AIX.
* Revision 1.11 1997/07/21 17:07:38 tjr
* use new OS / processor macros
*
* Revision 1.10 1997/05/06 16:06:03 sll
* Public release.
*
*/
#ifndef __CORBA_SYSDEP_H__
#define __CORBA_SYSDEP_H__
#define HAS_Cplusplus_const_cast
// Unset this define if the compiler does not support const_cast<T*>
#define HAS_Cplusplus_catch_exception_by_base
// Unset this define if the compiler does not support catching
// exceptions by base class.
#if defined(__GNUG__)
// GNU G++ compiler
# include <bits/wordsize.h>
# if __WORDSIZE == 64
# define SIZEOF_LONG 8
# define SIZEOF_INT 4
# define SIZEOF_PTR 8
# endif
# if __GNUG__ == 2 && __GNUC_MINOR__ == 7
# undef HAS_Cplusplus_catch_exception_by_base
# endif
// Activate temporary workaround for a bug in post-1.0 egcs snapshots
// No side-effect on other gcc compilers. May be removed in future once
// the bug is fixed.
#define EGCS_WORKAROUND
#define NEED_DUMMY_RETURN
// Minor version number 91 is for egcs version 1.* Some older
// versions of 1.* may not support namespaces properly - this is
// only tested for egcs 1.1.1
# if (__GNUG__ == 2 && (__GNUC_MINOR__ >= 91 || __GNUC_MINOR__ == 9)) || \
(__GNUG__ >= 3)
# define HAS_Cplusplus_Namespace
# define HAS_Cplusplus_Bool
# endif
// GCC claims to support long long on all platforms
# define HAS_LongLong
# define _CORBA_LONGLONG_DECL long long
# define _CORBA_ULONGLONG_DECL unsigned long long
# define _CORBA_LONGDOUBLE_DECL long double
# define _CORBA_LONGLONG_CONST(x) (x##LL)
#elif defined(__DECCXX)
// DEC C++ compiler
# if defined(__alpha) && !defined(__VMS)
# define SIZEOF_LONG 8
# define SIZEOF_INT 4
# define SIZEOF_PTR 8
# endif
# if __DECCXX_VER >= 60000000
# define HAS_LongLong
//# define HAS_LongDouble
# define _CORBA_LONGLONG_DECL long long
# define _CORBA_ULONGLONG_DECL unsigned long long
# define _CORBA_LONGDOUBLE_DECL long double
# define _CORBA_LONGLONG_CONST(x) (x##LL)
# ifndef NO_Cplusplus_Bool
# define HAS_Cplusplus_Bool
# endif
# define HAS_Cplusplus_Namespace
# define HAS_Std_Namespace
# define HAS_pch
# define OMNI_REQUIRES_FQ_BASE_CTOR
// 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.
//# elif __DECCXX_VER >= 50600000
//# define HAS_Cplusplus_Namespace
//# define NEED_DUMMY_RETURN
# else
// Compaq C++ 5.x
// Work-around for OpenVMS VAX Compaq C++ 5.6 compiler problem with
// %CXX-W-CANTCOMPLETE messages. Note that this cannot be disabled with a
// compiler switch if the message occurs in a template instantiation (but
// this pragma wasn't implemented until 6.something on Unix).
# ifdef __VMS
# pragma message disable CANTCOMPLETE
# endif
# define NEED_DUMMY_RETURN
# undef HAS_Cplusplus_const_cast
# define OMNI_REQUIRES_FQ_BASE_CTOR
# define OMNI_OPERATOR_REFPTR_REQUIRES_TYPEDEF
# define OMNI_PREMATURE_INSTANTIATION
// Extra macros from the Compaq C++ 5.x patch (in <top>/patches/) to be
// added here
# ifndef OMNI_OPERATOR_REFPTR
# error "Patch for Compaq C++ 5.x has not been applied."
# endif
# endif
#elif defined(__SUNPRO_CC)
// SUN C++ compiler
# if __SUNPRO_CC < 0x420
# define NEED_DUMMY_RETURN
# elif __SUNPRO_CC >= 0x500
# define HAS_Cplusplus_Namespace
# define HAS_Std_Namespace
# endif
# define HAS_LongLong
//# define HAS_LongDouble
# define _CORBA_LONGLONG_DECL long long
# define _CORBA_ULONGLONG_DECL unsigned long long
# define _CORBA_LONGDOUBLE_DECL long double
# define _CORBA_LONGLONG_CONST(x) (x##LL)
// XXX
// This is a hack to work around a bug in SUN C++ compiler (seen on 4.2).
// When instantiating templates, the compiler may generate code in Template.DB.
// It stores in the directory the dependency and compiler options to
// regenerate the template code if necessary. Unfortunately, it stores the
// option -D__OSVERSION__=5 as -D__OSVERSION__='5'. This of course causes
// the compilation to fail because the source code assume that the CPP macro
// __OSVERSION__ is an interger. The following hack detects this condition
// and revert the macro to its expected form.
# ifdef __OSVERSION__
# if __OSVERSION__ != 5
# if __OSVERSION__ == '5'
# undef __OSVERSION__
# define __OSVERSION__ 5
# endif
# endif
# endif
#elif defined(_MSC_VER)
// Microsoft Visual C++ compiler
#define NEED_DUMMY_RETURN
#if _MSC_VER >= 1000
# ifndef NO_Cplusplus_Bool
# define HAS_Cplusplus_Bool
# endif
#define HAS_Cplusplus_Namespace
#define HAS_Std_Namespace
#endif
#define _HAS_NOT_GOT_strcasecmp
#define _HAS_NOT_GOT_strncasecmp
#define HAS_LongLong
#define _CORBA_LONGLONG_DECL __int64
#define _CORBA_ULONGLONG_DECL unsigned __int64
#define _CORBA_LONGLONG_CONST(x) (x)
#elif defined(__BCPLUSPLUS__)
#define HAS_Cplusplus_Namespace
#elif defined(__KCC)
// Kai C++
#define HAS_Cplusplus_Namespace
#define HAS_Std_Namespace
#define HAS_Cplusplus_Bool
#elif defined(__sgi)
#if _COMPILER_VERSION >= 721
#define HAS_Cplusplus_Namespace
#define HAS_Cplusplus_Bool
#define OMNI_REQUIRES_FQ_BASE_CTOR
#define HAS_LongLong
#define _CORBA_LONGLONG_DECL long long
#define _CORBA_ULONGLONG_DECL unsigned long long
#define _CORBA_LONGLONG_CONST(x) (x##LL)
#endif
#if _MIPS_SZINT == 64
# define SIZEOF_INT 8
#endif
#if _MIPS_SZLONG == 64
# define SIZEOF_LONG 8
#endif
#if _MIPS_SZPTR == 64
# define SIZEOF_PTR 8
#endif
#elif defined(__xlC__)
# if (__xlC__ <= 0x0306)
# undef HAS_Cplusplus_const_cast
# elif (__xlC__ >= 0x0500) // added in xlC 5.0 (a.k.a. Visual Age 5.0)
# define HAS_Cplusplus_Bool
# define HAS_Cplusplus_Namespace
# define HAS_Std_Namespace
# endif
#elif defined(__hpux__)
// 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 case this is an older compiler aCC, test if this is gcc, if not assume
// it is aCC.
#if defined(__HP_aCC) || !defined(__GNUG__)
#define NEED_DUMMY_RETURN
#define HAS_Cplusplus_Namespace
#define HAS_Cplusplus_Bool
#define HAS_LongLong
#define _CORBA_LONGLONG_DECL long long
#define _CORBA_ULONGLONG_DECL unsigned long long
#define _CORBA_LONGLONG_CONST(x) (x##LL)
#endif
#endif
#if defined(arm)
// We don't have support for float.
# define NO_FLOAT
#endif
#ifndef __cplusplus
#error "Cannot use this C++ header file for non C++ programs."
#endif
#ifdef Status
#error "Name conflict: Status is defined as a macro in a header file include before this."
// X11's Xlib.h (and may be others) define Status as a macro. This name
// conflicts with the Status type defined in the CORBA namespace.
// To remove this error, make sure that the offending header file is included
// after omniORB2/CORBA.h.
#endif
// Default flag values if not already overridden above
#ifndef SIZEOF_LONG
#define SIZEOF_LONG 4
#endif
#ifndef SIZEOF_INT
#define SIZEOF_INT 4
#endif
#ifndef SIZEOF_PTR
#define SIZEOF_PTR 4
#endif
#if defined(__linux__)
# include <endian.h>
# if __BYTE_ORDER == __LITTLE_ENDIAN
# define _OMNIORB_HOST_BYTE_ORDER_ 1
# elif __BYTE_ORDER == __BIG_ENDIAN
# define _OMNIORB_HOST_BYTE_ORDER_ 0
# endif
# define _HAS_SIGNAL 1
#elif defined(__arm__) && defined(__atmos__)
# define _OMNIORB_HOST_BYTE_ORDER_ 1
#elif defined(__alpha__) && !defined(__VMS)
# define _OMNIORB_HOST_BYTE_ORDER_ 1
# if !defined(__WIN32__)
# define _HAS_SIGNAL 1
# endif
#elif defined(__sunos__) && defined(__sparc__)
# define _OMNIORB_HOST_BYTE_ORDER_ 0
# define _HAS_SIGNAL 1
# if __OSVERSION__ == 5
# define NEED_GETHOSTNAME_PROTOTYPE
# endif
#elif defined(__x86__)
# define _OMNIORB_HOST_BYTE_ORDER_ 1
# if !defined(__WIN32__)
# define _HAS_SIGNAL 1
# endif
# if defined(__nextstep__)
# define _USE_MACH_SIGNAL 1
# define _NO_STRDUP 1
# define _USE_GETHOSTNAME 1
# endif
#elif defined(__aix__) && defined(__powerpc__)
# define _OMNIORB_HOST_BYTE_ORDER_ 0
# define _HAS_SIGNAL 1
# define OMNI_REQUIRES_FQ_BASE_CTOR 1
#elif defined(__hpux__) && defined(__hppa__)
# define _OMNIORB_HOST_BYTE_ORDER_ 0
# define _HAS_SIGNAL 1
#if __OSVERSION__ < 11
// Do we really need to include this here? -SLL
// - not for HPUX 11.0
// need someone to check this for HPUX 10.20
#include <stdio.h>
#undef __ptr
#endif
#elif defined(__m68k__) && defined(__nextstep__)
# define _OMNIORB_HOST_BYTE_ORDER_ 0
# define _HAS_SIGNAL 1
# define _USE_MACH_SIGNAL 1
# define _NO_STRDUP 1
# define _USE_GETHOSTNAME 1
#elif defined(__VMS)
# define _OMNIORB_HOST_BYTE_ORDER_ 1
# if __VMS_VER >= 70000000
# define _HAS_SIGNAL 1
# else
# define _NO_STRDUP 1
# define _HAS_NOT_GOT_strcasecmp
# define _HAS_NOT_GOT_strncasecmp
# endif
#elif defined(__SINIX__)
# define _OMNIORB_HOST_BYTE_ORDER_ 0
# define _HAS_SIGNAL 1
#elif defined(__irix__)
# define _OMNIORB_HOST_BYTE_ORDER_ 0
# define _HAS_SIGNAL 1
# define _USE_GETHOSTNAME 1
#elif defined(__powerpc__)
# define _OMNIORB_HOST_BYTE_ORDER_ 0
#else
# error "The byte order of this platform is unknown"
#endif
#if defined(_MSC_VER)
//
// _OMNIORB_LIBRARY is defined when the omniORB library is compiled.
// _OMNIORB_DYNAMIC_LIBRARY is defined when the dynamic library is compiled.
// These are defined on the command line when compiling the libraries.
//
// _WINSTATIC is defined when an application is compiled to
// use the static library.
//
// To package stubs into dlls:
// 1. Define the cpp macro _OMNIORB2_STUB_DLL when the stub _SK.cc is
// compiled.
// 2. A .def file has to be created to export the symbols in the dll.
// The .def file can be generated automatically based on the output
// of dumpbin. For an example, look at how the omniORB2 dll is created.
//
// To use stubs that has been packaged into dlls:
// 1. Make sure that the cpp macro USE_stub_in_nt_dll is defined before
// the stub header (.hh) is included.
//
// Use _OMNIORB_NTDLL_IMPORT to ensure that MSVC++ use the correct linkage
// for constants and variables exported by a DLL.
//
# ifdef _WINSTATIC
# define _OMNIORB_NTDLL_IMPORT
# else
# define _OMNIORB_NTDLL_IMPORT __declspec(dllimport)
# endif
#else
// For non-MSVC++ compiler, this macro expands to nothing.
# define _OMNIORB_NTDLL_IMPORT
#endif
#if defined(_MSC_VER)
#if defined(_DEBUG)
// The type name instantiated from the sequence templates could exceeds the
// 255 char limit of the debug symbol names. It is harmless except that one
// cannot read their values with the debugger. Disable the warning about
// the symbol name truncation.
#pragma warning(disable: 4786)
#endif
// Disable warnings about a member function in a derived class overriding
// a member function in the base class.
#pragma warning(disable: 4250)
#endif
#ifdef HAS_Cplusplus_Namespace
#ifndef _CORBA_MODULE
#define _CORBA_MODULE namespace
#else
#error "Name conflict: _CORBA_MODULE is already defined."
#endif
#ifndef _CORBA_MODULE_BEG
#define _CORBA_MODULE_BEG {
#else
#error "Name conflict: _CORBA_MODULE_BEG is already defined."
#endif
#ifndef _CORBA_MODULE_END
#define _CORBA_MODULE_END }
#else
#error "Name conflict: _CORBA_MODULE_END is already defined."
#endif
#ifndef _CORBA_MODULE_OP
#define _CORBA_MODULE_OP
#else
#error "Name conflict: _CORBA_MODULE_OP is already defined."
#endif
#ifndef _CORBA_MODULE_FN
#define _CORBA_MODULE_FN
#else
#error "Name conflict: _CORBA_MODULE_FN is already defined."
#endif
#ifndef _CORBA_MODULE_VAR
#define _CORBA_MODULE_VAR extern
#else
#error "Name conflict: _CORBA_MODULE_VAR is already defined."
#endif
#ifndef _CORBA_GLOBAL_VAR
#define _CORBA_GLOBAL_VAR extern
#else
#error "Name conflict: _CORBA_GLOBAL_VAR is already defined."
#endif
#ifndef _CORBA_MODULE_VARINT
#define _CORBA_MODULE_VARINT
#else
#error "Name conflict: _CORBA_MODULE_VARINT is already defined."
#endif
#ifndef _CORBA_GLOBAL_VARINT
#define _CORBA_GLOBAL_VARINT
#else
#error "Name conflict: _CORBA_GLOBAL_VARINT is already defined."
#endif
// Integral and enumeration constants are declared in the stub headers as:
// e.g. class A {
// static const CORBA::Long AA _init_in_cldecl_( = 4 );
// };
// namespace B {
// const CORBA::Long BB _init_in_decl_( = 5 );
// };
// And defined in the SK.cc:
// e.g. const CORBA::Long A::AA _init_in_cldef_( = 4 );
// _init_in_def_( const CORBA::Long B::BB = 5 );
//
// Final Draft (FD) allows declaration of static const integral or enum type
// be specified with a constant-initializer whereas ARM does not.
// The _init_in_decl_ and _init_in_def_ macros are defined so that the same
// stub will compile on both FD and ARM compilers.
// MSVC++ 5.0 (and 6.0) is somewhere between FD and ARM.
// _MSC_VER = 1100 for 5.0, 1200 for 6.0.
//
#ifndef _init_in_decl_
#define _init_in_decl_(x) x
#else
#error "Name conflict: _init_in_decl_ is already defined."
#endif
#ifndef _init_in_def_
#define _init_in_def_(x)
#else
#error "Name conflict: _init_in_def_ is already defined."
#endif
#ifndef _init_in_cldecl_
# if !defined(_MSC_VER)
# define _init_in_cldecl_(x) x
# else
# define _init_in_cldecl_(x)
# endif
#else
#error "Name conflict: _init_in_cldecl_ is already defined."
#endif
#ifndef _init_in_cldef_
# if !defined(_MSC_VER)
# define _init_in_cldef_(x)
# else
# define _init_in_cldef_(x) x
# endif
#else
#error "Name conflict: _init_in_cldef_ is already defined."
#endif
#else
#ifndef _CORBA_MODULE
#define _CORBA_MODULE class
#else
#error "Name conflict: _CORBA_MODULE is already defined."
#endif
#ifndef _CORBA_MODULE_BEG
#define _CORBA_MODULE_BEG { public:
#else
#error "Name conflict: _CORBA_MODULE_BEG is already defined."
#endif
#ifndef _CORBA_MODULE_END
#define _CORBA_MODULE_END };
#else
#error "Name conflict: _CORBA_MODULE_END is already defined."
#endif
#ifndef _CORBA_MODULE_OP
#define _CORBA_MODULE_OP friend
#else
#error "Name conflict: _CORBA_MODULE_OP is already defined."
#endif
#ifndef _CORBA_MODULE_FN
#define _CORBA_MODULE_FN static
#else
#error "Name conflict: _CORBA_MODULE_FN is already defined."
#endif
#ifndef _CORBA_MODULE_VAR
#define _CORBA_MODULE_VAR static
#else
#error "Name conflict: _CORBA_MODULE_VAR is already defined."
#endif
#ifndef _CORBA_GLOBAL_VAR
#define _CORBA_GLOBAL_VAR extern
#else
#error "Name conflict: _CORBA_GLOBAL_VAR is already defined."
#endif
#ifndef _CORBA_MODULE_VARINT
#define _CORBA_MODULE_VARINT static _core_attr
#else
#error "Name conflict: _CORBA_MODULE_VARINT is already defined."
#endif
#ifndef _CORBA_GLOBAL_VARINT
#define _CORBA_GLOBAL_VARINT extern _core_attr
#else
#error "Name conflict: _CORBA_GLOBAL_VARINT is already defined."
#endif
#ifndef _init_in_decl_
#define _init_in_decl_(x)
#else
#error "Name conflict: _init_in_decl_ is already defined."
#endif
#ifndef _init_in_def_
#define _init_in_def_(x) x
#else
#error "Name conflict: _init_in_def_ is already defined."
#endif
#ifndef _init_in_cldecl_
#define _init_in_cldecl_(x)
#else
#error "Name conflict: _init_in_cldecl_ is already defined."
#endif
#ifndef _init_in_cldef_
#define _init_in_cldef_(x) x
#else
#error "Name conflict: _init_in_cldef_ is already defined."
#endif
// Deprecated. Old stubs still need this. Should be removed.
#ifndef _CORBA_MODULE_PUBLIC
#define _CORBA_MODULE_PUBLIC public:
#endif
#endif // HAS_Cplusplus_Namespace
#ifdef OMNI_REQUIRES_FQ_BASE_CTOR
# define OMNIORB_BASE_CTOR(a) a
#else
# define OMNIORB_BASE_CTOR(a)
#endif
#ifndef OMNI_OPERATOR_REFPTR
// Only used when the source tree is patched with DEC C++ 5.6 workarounds
#define OMNI_OPERATOR_REFPTR(T) inline operator T*&()
#endif
#ifndef OMNI_CONSTRTYPE_FIX_VAR_MEMBER
// Only used when the source tree is patched with DEC C++ 5.6 workarounds
#define OMNI_CONSTRTYPE_FIX_VAR_MEMBER(T) \
typedef _CORBA_ConstrType_Fix_Var<T> _var_type;
#endif
#ifndef OMNI_CONSTRTYPE_FIX_VAR
// Only used when the source tree is patched with DEC C++ 5.6 workarounds
#define OMNI_CONSTRTYPE_FIX_VAR(T) typedef T::_var_type T##_var;
#endif
#ifndef USE_omniORB_logStream
// New stubs use omniORB::logStream. Old stubs still need cerr. Include
// the necessary iostream header if that is the case.
#include <iostream.h>
#endif
// #define ENABLE_CLIENT_IR_SUPPORT
// Define ENABLE_CLIENT_IR_SUPPORT to use as client to an Interface Repository
#endif // __CORBA_SYSDEP_H__
|