summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/tk.h9
-rw-r--r--generic/tk3d.h8
-rw-r--r--generic/tkButton.h8
-rw-r--r--generic/tkColor.h8
-rw-r--r--generic/tkFileFilter.h9
-rw-r--r--generic/tkFont.h8
-rw-r--r--generic/tkMenu.h8
-rw-r--r--generic/tkMenubutton.h8
-rw-r--r--generic/tkScale.h8
-rw-r--r--generic/tkScrollbar.h8
10 files changed, 82 insertions, 0 deletions
diff --git a/generic/tk.h b/generic/tk.h
index 8099d7c..870e054 100644
--- a/generic/tk.h
+++ b/generic/tk.h
@@ -79,6 +79,11 @@
# include <stddef.h>
#endif
+#ifdef BUILD_tk
+# undef EXPORT
+# define EXPORT DLLEXPORT
+#endif
+
/*
* Decide whether or not to use input methods.
*/
@@ -1546,4 +1551,8 @@ EXTERN int Tk_WmCmd _ANSI_ARGS_((ClientData clientData,
Tcl_Interp *interp, int argc, char **argv));
#endif /* RESOURCE_INCLUDED */
+
+#undef EXPORT
+#define EXPORT DLLIMPORT
+
#endif /* _TK */
diff --git a/generic/tk3d.h b/generic/tk3d.h
index cd9ecd5..d1c6f1d 100644
--- a/generic/tk3d.h
+++ b/generic/tk3d.h
@@ -17,6 +17,11 @@
#include <tkInt.h>
+#ifdef BUILD_tk
+# undef EXPORT
+# define EXPORT DLLEXPORT
+#endif
+
/*
* One of the following data structures is allocated for
* each 3-D border currently in use. Structures of this
@@ -76,4 +81,7 @@ EXTERN void TkpGetShadows _ANSI_ARGS_((TkBorder *borderPtr,
Tk_Window tkwin));
EXTERN void TkpFreeBorder _ANSI_ARGS_((TkBorder *borderPtr));
+#undef EXPORT
+#define EXPORT DLLIMPORT
+
#endif /* _TK3D */
diff --git a/generic/tkButton.h b/generic/tkButton.h
index 0d5b928..8e0ee3a 100644
--- a/generic/tkButton.h
+++ b/generic/tkButton.h
@@ -19,6 +19,11 @@
#include "tkInt.h"
#endif
+#ifdef BUILD_tk
+# undef EXPORT
+# define EXPORT DLLEXPORT
+#endif
+
/*
* A data structure of the following type is kept for each
* widget managed by this file:
@@ -238,4 +243,7 @@ EXTERN void TkpDisplayButton _ANSI_ARGS_((ClientData clientData));
#endif
EXTERN int TkInvokeButton _ANSI_ARGS_((TkButton *butPtr));
+#undef EXPORT
+#define EXPORT DLLIMPORT
+
#endif /* _TKBUTTON */
diff --git a/generic/tkColor.h b/generic/tkColor.h
index 9653243..bfd0a0c 100644
--- a/generic/tkColor.h
+++ b/generic/tkColor.h
@@ -17,6 +17,11 @@
#include <tkInt.h>
+#ifdef BUILD_tk
+# undef EXPORT
+# define EXPORT DLLEXPORT
+#endif
+
/*
* One of the following data structures is used to keep track of
* each color that the color module has allocated from the X display
@@ -57,4 +62,7 @@ EXTERN TkColor * TkpGetColor _ANSI_ARGS_((Tk_Window tkwin,
EXTERN TkColor * TkpGetColorByValue _ANSI_ARGS_((Tk_Window tkwin,
XColor *colorPtr));
+#undef EXPORT
+#define EXPORT DLLIMPORT
+
#endif /* _TKCOLOR */
diff --git a/generic/tkFileFilter.h b/generic/tkFileFilter.h
index 2b113fc..d298353 100644
--- a/generic/tkFileFilter.h
+++ b/generic/tkFileFilter.h
@@ -22,6 +22,11 @@
#define OSType long
#endif
+#ifdef BUILD_tk
+# undef EXPORT
+# define EXPORT DLLEXPORT
+#endif
+
typedef struct GlobPattern {
struct GlobPattern * next; /* Chains to the next glob pattern
* in a glob pattern list */
@@ -80,4 +85,8 @@ EXTERN void TkInitFileFilters _ANSI_ARGS_((
EXTERN int TkGetFileFilters _ANSI_ARGS_ ((Tcl_Interp *interp,
FileFilterList * flistPtr, char * string,
int isWindows));
+
+#undef EXPORT
+#define EXPORT DLLIMPORT
+
#endif
diff --git a/generic/tkFont.h b/generic/tkFont.h
index 758c329..51d4823 100644
--- a/generic/tkFont.h
+++ b/generic/tkFont.h
@@ -16,6 +16,11 @@
#ifndef _TKFONT
#define _TKFONT
+#ifdef BUILD_tk
+# undef EXPORT
+# define EXPORT DLLEXPORT
+#endif
+
/*
* The following structure keeps track of the attributes of a font. It can
* be used to keep track of either the desired attributes or the actual
@@ -205,4 +210,7 @@ EXTERN void TkpGetFontFamilies _ANSI_ARGS_((Tcl_Interp *interp,
EXTERN TkFont * TkpGetNativeFont _ANSI_ARGS_((Tk_Window tkwin,
CONST char *name));
+#undef EXPORT
+#define EXPORT DLLIMPORT
+
#endif /* _TKFONT */
diff --git a/generic/tkMenu.h b/generic/tkMenu.h
index 6f30d72..9cc207c 100644
--- a/generic/tkMenu.h
+++ b/generic/tkMenu.h
@@ -26,6 +26,11 @@
#include "default.h"
#endif
+#ifdef BUILD_tk
+# undef EXPORT
+# define EXPORT DLLEXPORT
+#endif
+
/*
* Dummy types used by the platform menu code.
*/
@@ -537,5 +542,8 @@ EXTERN int TkpPostMenu _ANSI_ARGS_((Tcl_Interp *interp,
EXTERN void TkpSetWindowMenuBar _ANSI_ARGS_((Tk_Window tkwin,
TkMenu *menuPtr));
+#undef EXPORT
+#define EXPORT DLLIMPORT
+
#endif /* _TKMENU */
diff --git a/generic/tkMenubutton.h b/generic/tkMenubutton.h
index 0fb0f65..d8a6659 100644
--- a/generic/tkMenubutton.h
+++ b/generic/tkMenubutton.h
@@ -19,6 +19,11 @@
#include "tkInt.h"
#endif
+#ifdef BUILD_tk
+# undef EXPORT
+# define EXPORT DLLEXPORT
+#endif
+
/*
* A data structure of the following type is kept for each
* widget managed by this file:
@@ -204,4 +209,7 @@ EXTERN void TkpDestroyMenuButton _ANSI_ARGS_((
EXTERN void TkMenuButtonWorldChanged _ANSI_ARGS_((
ClientData instanceData));
+#undef EXPORT
+#define EXPORT DLLIMPORT
+
#endif /* _TKMENUBUTTON */
diff --git a/generic/tkScale.h b/generic/tkScale.h
index dba6f68..d8bf510 100644
--- a/generic/tkScale.h
+++ b/generic/tkScale.h
@@ -19,6 +19,11 @@
#include "tk.h"
#endif
+#ifdef BUILD_tk
+# undef EXPORT
+# define EXPORT DLLEXPORT
+#endif
+
/*
* A data structure of the following type is kept for each scale
* widget managed by this file:
@@ -222,4 +227,7 @@ EXTERN void TkpSetScaleValue _ANSI_ARGS_((TkScale *scalePtr,
EXTERN int TkpValueToPixel _ANSI_ARGS_((TkScale *scalePtr,
double value));
+#undef EXPORT
+#define EXPORT DLLIMPORT
+
#endif /* _TKSCALE */
diff --git a/generic/tkScrollbar.h b/generic/tkScrollbar.h
index 48296a2..a524e55 100644
--- a/generic/tkScrollbar.h
+++ b/generic/tkScrollbar.h
@@ -19,6 +19,11 @@
#include "tkInt.h"
#endif
+#ifdef BUILD_tk
+# undef EXPORT
+# define EXPORT DLLEXPORT
+#endif
+
/*
* A data structure of the following type is kept for each scrollbar
* widget.
@@ -197,4 +202,7 @@ EXTERN void TkpConfigureScrollbar _ANSI_ARGS_((
EXTERN int TkpScrollbarPosition _ANSI_ARGS_((
TkScrollbar *scrollPtr, int x, int y));
+#undef EXPORT
+#define EXPORT DLLIMPORT
+
#endif /* _TKSCROLLBAR */