diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2004-09-23 14:35:07 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2004-09-23 14:35:07 +0000 |
commit | 33e923a9194f1675a63f0ab05e56b634e7c65d13 (patch) | |
tree | 7b9f7b9343804b1dc1f633324b0869b2c25ee3d5 | |
parent | 6516b856698de3e4028e4bb00c482a82b7ecdadf (diff) | |
download | ATCD-33e923a9194f1675a63f0ab05e56b634e7c65d13.tar.gz |
ChangeLogTag: Thu Sep 23 14:32:12 UTC 2004 Johnny Willemsen <jwillemsen@remedy.nl>
-rw-r--r-- | ace/config-win32-dmc.h | 109 | ||||
-rw-r--r-- | ace/config-win32.h | 2 | ||||
-rw-r--r-- | include/makeinclude/platform_win32_dmc.GNU | 56 |
3 files changed, 167 insertions, 0 deletions
diff --git a/ace/config-win32-dmc.h b/ace/config-win32-dmc.h new file mode 100644 index 00000000000..8fd7f4aec00 --- /dev/null +++ b/ace/config-win32-dmc.h @@ -0,0 +1,109 @@ +// -*- C++ -*- +// $Id$ + +// The following configuration file contains defines for Digital Mars compilers. + +#ifndef ACE_CONFIG_WIN32_DMC_H +#define ACE_CONFIG_WIN32_DMC_H +#include /**/ "ace/pre.h" + +#ifndef ACE_CONFIG_WIN32_H +#error Use config-win32.h in config.h instead of this header +#endif /* ACE_CONFIG_WIN32_H */ + +#ifndef WIN32 +# define WIN32 +#endif /* WIN32 */ + +#undef _M_IX86 +// This turns on ACE_HAS_PENTIUM +#define _M_IX86 500 +// GHS does not provide DLL support +#define ACE_HAS_DLL 0 +#define TAO_HAS_DLL 0 +#undef _DLL + +//Green Hills Native x86 does not support structural exceptions +# undef ACE_HAS_WIN32_STRUCTURAL_EXCEPTIONS +# undef ACE_HAS_WCHAR + +// Changed ACE_TEXT to ACE_LIB_TEXT in the following line +# define ACE_CC_NAME ACE_LIB_TEXT ("Green Hills C++") +# define ACE_CC_MAJOR_VERSION (1) +# define ACE_CC_MINOR_VERSION (8) +# define ACE_CC_BETA_VERSION (9) +# define ACE_CC_PREPROCESSOR "GCX.EXE" +# define ACE_CC_PREPROCESSOR_ARGS "-E" + +// GHS uses Microsoft's standard cpp library, which has auto_ptr. +# undef ACE_LACKS_AUTO_PTR +// Microsoft's standard cpp library auto_ptr doesn't have reset (). +# define ACE_AUTO_PTR_LACKS_RESET + +#define ACE_ENDTHREADEX(STATUS) ::_endthreadex ((DWORD) STATUS) + +// This section below was extracted from config-win32-msvc +#define ACE_HAS_ITOA +#define ACE_ITOA_EQUIVALENT ::_itoa +#define ACE_STRCASECMP_EQUIVALENT ::_stricmp +#define ACE_STRNCASECMP_EQUIVALENT ::_strnicmp +#define ACE_WCSDUP_EQUIVALENT ::_wcsdup +// This section above was extracted from config-win32-msvc + +# define ACE_EXPORT_NESTED_CLASSES 1 +# define ACE_HAS_CPLUSPLUS_HEADERS 1 +//# define ACE_HAS_EXCEPTIONS 1 +# define ACE_HAS_GNU_CSTRING_H 1 +# define ACE_HAS_NONCONST_SELECT_TIMEVAL 1 +# define ACE_HAS_SIG_ATOMIC_T 1 +# define ACE_HAS_STANDARD_CPP_LIBRARY 0 +# define ACE_HAS_STD_TEMPLATE_SPECIALIZATION 1 +# define ACE_HAS_STDCPP_STL_INCLUDES 1 +# define ACE_HAS_STRERROR 1 +# define ACE_HAS_STRING_CLASS 1 +# define ACE_HAS_STRPTIME 1 +# define ACE_HAS_TEMPLATE_SPECIALIZATION 1 +# define ACE_HAS_TEMPLATE_TYPEDEFS 1 +# define ACE_HAS_TYPENAME_KEYWORD 1 +//# define ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION +# define ACE_HAS_USER_MODE_MASKS 1 +# define ACE_HAS_USING_KEYWORD 1 +//# define ACE_LACKS_LINEBUFFERED_STREAMBUF 1 +# define ACE_LACKS_MODE_MASKS 1 +# define ACE_LACKS_NATIVE_STRPTIME 1 +//# define ACE_LACKS_PLACEMENT_OPERATOR_DELETE 1 +//# define ACE_LACKS_PRAGMA_ONCE 1 +//# define ACE_NEW_THROWS_EXCEPTIONS 1 +# define ACE_SIZEOF_LONG_DOUBLE 10 +# define ACE_TEMPLATES_REQUIRE_SOURCE 1 +// Changed ACE_TEXT to ACE_LIB_TEXT in the following two lines +# define ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB 1 +# define ACE_HAS_STRBUF_T +// Set the following to zero to placate SString.h ACE_WString CTOR +# undef ACE_WSTRING_HAS_USHORT_SUPPORT +#define ACE_USES_OLD_IOSTREAMS +#define ACE_LACKS_UCONTEXT_H +#define ACE_LACKS_SYS_RESOURCE_H +#define ACE_LACKS_SYS_WAIT_H +#define ACE_LACKS_STRINGS_H +#define ACE_LACKS_SYS_IPC_H +#define ACE_LACKS_SYS_SEM_H +#define ACE_LACKS_SEMAPHORE_H +#define ACE_LACKS_SYS_MMAN_H +#define ACE_LACKS_SYS_UIO_H +#define ACE_LACKS_SYS_SOCKET_H +#define ACE_LACKS_NETINET_IN_H +#define ACE_LACKS_SYS_IOCTL_H +#define ACE_LACKS_SYS_SELECT_H +#define ACE_LACKS_NET_IF_H +#define ACE_LACKS_DLFCN_H +#define ACE_LACKS_NETDB_H +#define ACE_LACKS_SYS_SHM_H +#define ACE_LACKS_REGEX_H + +# if !defined (ACE_LD_DECORATOR_STR) && defined (_DEBUG) +# define ACE_LD_DECORATOR_STR ACE_LIB_TEXT ("d") +# endif + +#include /**/ "ace/post.h" +#endif /* ACE_CONFIG_WIN32_DMC_H */ diff --git a/ace/config-win32.h b/ace/config-win32.h index a7a46c39fa1..cfe53fbc847 100644 --- a/ace/config-win32.h +++ b/ace/config-win32.h @@ -47,6 +47,8 @@ # include "ace/config-win32-ghs.h" #elif defined (__MINGW32__) # include "ace/config-win32-mingw.h" +#elif defined (__DMC__) +# include "ace/config-win32-dmc.h" #else # error Compiler is not supported #endif diff --git a/include/makeinclude/platform_win32_dmc.GNU b/include/makeinclude/platform_win32_dmc.GNU new file mode 100644 index 00000000000..60fb60d2fe4 --- /dev/null +++ b/include/makeinclude/platform_win32_dmc.GNU @@ -0,0 +1,56 @@ +# $Id$ + +# debug = 1 +# optimize = 1 +# exceptions = 0 + +ifndef winsock2 + winsock2 = 1 +endif + +ifndef exceptions + exceptions = 0 +endif +ifeq (,$(debug)) + debug = 1 +endif +ifeq (,$(optimize)) + optimize = 1 +endif +ifeq (,$(threads)) + threads = 1 +endif +ifeq (,$(rtti)) + rtti = 1 +endif +pipes = 0 +ifeq ($(debug),0) +CFLAGS += -DNDEBUG -v1 +endif +ifeq ($(rtti),1) + CFLAGS += -Ar +endif + +CC = dmc +CXX = dmc +RC = + +CFLAGS += $(MODEL_FLAGS) + +EXEEXT = .exe + +DCFLAGS += -g +DLD = link +LD = link + +PIC = +AR = ar +ARFLAGS = rsuv +RANLIB = ranlib +SOEXT = dll +SOFLAGS += $(MODEL_FLAGS) $(CPPFLAGS) +SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $< + +PRELIB = @true + +CCFLAGS += $(CFLAGS) $(TEMPLATES_FLAG) |