summaryrefslogtreecommitdiff
path: root/ace
diff options
context:
space:
mode:
Diffstat (limited to 'ace')
-rw-r--r--ace/config-win32-common.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/ace/config-win32-common.h b/ace/config-win32-common.h
index 029db65fc83..36dde43d5fd 100644
--- a/ace/config-win32-common.h
+++ b/ace/config-win32-common.h
@@ -87,9 +87,14 @@
#define ACE_Proper_Export_Flag __declspec (dllexport)
#define ACE_Proper_Import_Flag __declspec (dllimport)
#define ACE_EXPORT_SINGLETON_DECLARATION(T) template class __declspec (dllexport) T
-#define ACE_IMPORT_SINGLETON_DECLARATION(T) extern template class T
#define ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) template class __declspec (dllexport) SINGLETON_TYPE<CLASS, LOCK>;
+#if defined (__BORLANDC__)
+#define ACE_IMPORT_SINGLETON_DECLARATION(T) template class __declspec (dllimport) T
+#define ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) template class __declspec (dllimport) SINGLETON_TYPE <CLASS, LOCK>;
+#else /* __BORLANDC__ */
+#define ACE_IMPORT_SINGLETON_DECLARATION(T) extern template class T
#define ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) extern template class SINGLETON_TYPE <CLASS, LOCK>;
+#endif /* __BORLANDC__ */
#endif /* !__MINGW32__ */
// Define ACE_HAS_WINSOCK2 to 0 in your config.h file if you do *not*