summaryrefslogtreecommitdiffstats
path: root/generic/tcl.h
diff options
context:
space:
mode:
authordavygrvy <davygrvy@pobox.com>2001-09-05 04:32:11 (GMT)
committerdavygrvy <davygrvy@pobox.com>2001-09-05 04:32:11 (GMT)
commit0ab5a9eadd4a1d303e6f1c410921c09b744c1a29 (patch)
treee20f93d7195d722c9b8740d2692973c016e4b4fa /generic/tcl.h
parent8e5f88457a32df90908c73840edac61388de3bcd (diff)
downloadtcl-0ab5a9eadd4a1d303e6f1c410921c09b744c1a29.zip
tcl-0ab5a9eadd4a1d303e6f1c410921c09b744c1a29.tar.gz
tcl-0ab5a9eadd4a1d303e6f1c410921c09b744c1a29.tar.bz2
* generic/tcl.h: Removed a small mistake from before. Changes to
the EXTERN macro for proper Borland compatibility will have to see a TIP. What's this with the MS compiler: __declspec(dllexport) int func (int a, int b); will have to be this with Borland: int __cdecl __export func (int a, int b); The order of the attribute needs to be after the return type.
Diffstat (limited to 'generic/tcl.h')
-rw-r--r--generic/tcl.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/generic/tcl.h b/generic/tcl.h
index d210a6d..49d177a 100644
--- a/generic/tcl.h
+++ b/generic/tcl.h
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tcl.h,v 1.99 2001/09/05 03:12:03 davygrvy Exp $
+ * RCS: @(#) $Id: tcl.h,v 1.100 2001/09/05 04:32:11 davygrvy Exp $
*/
#ifndef _TCL
@@ -72,7 +72,7 @@ extern "C" {
#ifndef __WIN32__
# if defined(_WIN32) || defined(WIN32) || \
- defined(__CYGWIN__) || defined(__MINGW32__)
+ defined(__CYGWIN__) || defined(__MINGW32__) || defined(__BORLANDC__)
# define __WIN32__
# endif
#endif
@@ -224,16 +224,16 @@ extern "C" {
*/
#ifdef STATIC_BUILD
-# define DLLIMPORT
-# define DLLEXPORT
+# define DLLIMPORT
+# define DLLEXPORT
#else
-# if defined(__WIN32__) && (defined(_MSC_VER) || (defined(__GNUC__) && defined(__declspec)))
-# define DLLIMPORT __declspec(dllimport)
-# define DLLEXPORT __declspec(dllexport)
-# else
-# define DLLIMPORT
-# define DLLEXPORT
-# endif
+# if defined(__WIN32__) && (defined(_MSC_VER) || (defined(__GNUC__) && defined(__declspec)))
+# define DLLIMPORT __declspec(dllimport)
+# define DLLEXPORT __declspec(dllexport)
+# else
+# define DLLIMPORT
+# define DLLEXPORT
+# endif
#endif
/*