diff options
Diffstat (limited to 'TAO/tao/PortableServer/PortableServer.h')
-rw-r--r-- | TAO/tao/PortableServer/PortableServer.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/TAO/tao/PortableServer/PortableServer.h b/TAO/tao/PortableServer/PortableServer.h new file mode 100644 index 00000000000..362bd80c3af --- /dev/null +++ b/TAO/tao/PortableServer/PortableServer.h @@ -0,0 +1,54 @@ +/* -*- C++ -*- */ + +// $Id$ + +// ========================================================================= +// +// = LIBRARY +// TAO +// +// = FILENAME +// Portableserver.h +// +// = AUTHOR +// Carlos O'Ryan <coryan@uci.edu> +// +// ========================================================================= + +#ifndef TAO_PORTABLESERVER_H +#define TAO_PORTABLESERVER_H +#include "ace/pre.h" + +// #include "portableserver_export.h" +#include "tao/corbafwd.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +class TAO_Export /* TAO_Portableserver_Export */ TAO_POA_Initializer +{ +public: + static int init (void); + // Used to force the initialization of the ORB code. +}; + +#if defined(ACE_HAS_BROKEN_STATIC_CONSTRUCTORS) + +typedef int (*TAO_Module_Initializer) (void); + +static TAO_Module_Initializer +TAO_Requires_POA_Initializer = &TAO_POA_Initializer::init; + +#else + +static int +TAO_Requires_POA_Initializer = TAO_POA_Initializer::init (); + +#endif /* ACE_HAS_BROKEN_STATIC_CONSTRUCTORS */ + +#define TAO_PORTABLESERVER_SAFE_INCLUDE +#include "PortableServerC.h" +#undef TAO_PORTABLESERVER_SAFE_INCLUDE + +#endif /* TAO_PORTABLESERVER_H */ |