diff options
author | cornet | 2010-04-01 12:01:29 +0000 |
---|---|---|
committer | cornet | 2010-04-01 12:01:29 +0000 |
commit | 8f988819dd45d3b4235973592c849950011590c3 (patch) | |
tree | c22ebf4680e2014a6665af98dc67002163d0b4ef | |
parent | 9a27b50b2e6346f652f8fe3e03c1cdab0daa3a80 (diff) | |
download | scilab2c-8f988819dd45d3b4235973592c849950011590c3.tar.gz scilab2c-8f988819dd45d3b4235973592c849950011590c3.tar.bz2 scilab2c-8f988819dd45d3b4235973592c849950011590c3.zip |
export or import symbols only when it is a dll
9 files changed, 9 insertions, 9 deletions
diff --git a/scilab2c/src/c/auxiliaryFunctions/includes/dynlib_auxiliaryfunctions.h b/scilab2c/src/c/auxiliaryFunctions/includes/dynlib_auxiliaryfunctions.h index 3506663f..09b1bea8 100644 --- a/scilab2c/src/c/auxiliaryFunctions/includes/dynlib_auxiliaryfunctions.h +++ b/scilab2c/src/c/auxiliaryFunctions/includes/dynlib_auxiliaryfunctions.h @@ -13,7 +13,7 @@ #ifndef __DYNLIB_AUXILIARYFUNCTIONS_H__
#define __DYNLIB_AUXILIARYFUNCTIONS_H__
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && defined(_USRDLL)
#if AUXILIARYFUNCTIONS_EXPORTS
#define EXTERN_AUXFUNCT __declspec (dllexport)
#else
diff --git a/scilab2c/src/c/elementaryFunctions/includes/dynlib_elementaryfunctions.h b/scilab2c/src/c/elementaryFunctions/includes/dynlib_elementaryfunctions.h index 7dbf90d8..5037696f 100644 --- a/scilab2c/src/c/elementaryFunctions/includes/dynlib_elementaryfunctions.h +++ b/scilab2c/src/c/elementaryFunctions/includes/dynlib_elementaryfunctions.h @@ -13,7 +13,7 @@ #ifndef __DYNLIB_ELEMENTARYFUNCTIONS_H__
#define __DYNLIB_ELEMENTARYFUNCTIONS_H__
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && defined(_USRDLL)
#if ELEMENTARYFUNCTIONS_EXPORTS
#define EXTERN_ELEMFUNCT __declspec (dllexport)
#else
diff --git a/scilab2c/src/c/implicitList/dynlib_implicitlist.h b/scilab2c/src/c/implicitList/dynlib_implicitlist.h index 7c1ef88c..297c64b3 100644 --- a/scilab2c/src/c/implicitList/dynlib_implicitlist.h +++ b/scilab2c/src/c/implicitList/dynlib_implicitlist.h @@ -13,7 +13,7 @@ #ifndef __DYNLIB_IMPLICITLIST_H__
#define __DYNLIB_IMPLICITLIST_H__
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && defined(_USRDLL)
#if IMPLICITLIST_EXPORTS
#define EXTERN_IMPLIST __declspec (dllexport)
#else
diff --git a/scilab2c/src/c/matrixOperations/includes/dynlib_matrixoperations.h b/scilab2c/src/c/matrixOperations/includes/dynlib_matrixoperations.h index 16f45187..a0597a59 100644 --- a/scilab2c/src/c/matrixOperations/includes/dynlib_matrixoperations.h +++ b/scilab2c/src/c/matrixOperations/includes/dynlib_matrixoperations.h @@ -13,7 +13,7 @@ #ifndef __DYNLIB_MATRIXOPERATIONS_H__
#define __DYNLIB_MATRIXOPERATIONS_H__
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && defined(_USRDLL)
#if MATRIXOPERATIONS_EXPORTS
#define EXTERN_MATOPS __declspec (dllexport)
#else
diff --git a/scilab2c/src/c/operations/includes/dynlib_operations.h b/scilab2c/src/c/operations/includes/dynlib_operations.h index a55d2402..e91f6322 100644 --- a/scilab2c/src/c/operations/includes/dynlib_operations.h +++ b/scilab2c/src/c/operations/includes/dynlib_operations.h @@ -13,7 +13,7 @@ #ifndef __DYNLIB_OPERATIONS_H__
#define __DYNLIB_OPERATIONS_H__
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && defined(_USRDLL)
#if OPERATIONS_EXPORTS
#define EXTERN_OPERATIONS __declspec (dllexport)
#else
diff --git a/scilab2c/src/c/signalProcessing/includes/dynlib_signalprocessing.h b/scilab2c/src/c/signalProcessing/includes/dynlib_signalprocessing.h index 7f00f761..fcbe5800 100644 --- a/scilab2c/src/c/signalProcessing/includes/dynlib_signalprocessing.h +++ b/scilab2c/src/c/signalProcessing/includes/dynlib_signalprocessing.h @@ -13,7 +13,7 @@ #ifndef __DYNLIB_SIGNALPROCESSING_H__
#define __DYNLIB_SIGNALPROCESSING_H__
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && defined(_USRDLL)
#if SIGNALPROCESSING_EXPORTS
#define EXTERN_SIGPROC __declspec (dllexport)
#else
diff --git a/scilab2c/src/c/statisticsFunctions/includes/dynlib_statisticsfunctions.h b/scilab2c/src/c/statisticsFunctions/includes/dynlib_statisticsfunctions.h index 223b4e0a..b6dab50f 100644 --- a/scilab2c/src/c/statisticsFunctions/includes/dynlib_statisticsfunctions.h +++ b/scilab2c/src/c/statisticsFunctions/includes/dynlib_statisticsfunctions.h @@ -13,7 +13,7 @@ #ifndef __DYNLIB_STATISTICSFUNCTIONS_H__
#define __DYNLIB_STATISTICSFUNCTIONS_H__
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && defined(_USRDLL)
#if STATISTICSFUNCTIONS_EXPORTS
#define EXTERN_STATFUNC __declspec (dllexport)
#else
diff --git a/scilab2c/src/c/string/includes/dynlib_string.h b/scilab2c/src/c/string/includes/dynlib_string.h index 5bb390bd..ca11ce10 100644 --- a/scilab2c/src/c/string/includes/dynlib_string.h +++ b/scilab2c/src/c/string/includes/dynlib_string.h @@ -13,7 +13,7 @@ #ifndef __DYNLIB_STRING_H__
#define __DYNLIB_STRING_H__
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && defined(_USRDLL)
#if STRING_EXPORTS
#define EXTERN_STRING __declspec (dllexport)
#else
diff --git a/scilab2c/src/c/type/dynlib_type.h b/scilab2c/src/c/type/dynlib_type.h index bad5e44b..35ae247f 100644 --- a/scilab2c/src/c/type/dynlib_type.h +++ b/scilab2c/src/c/type/dynlib_type.h @@ -13,7 +13,7 @@ #ifndef __DYNLIB_TYPE_H__
#define __DYNLIB_TYPE_H__
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && defined(_USRDLL)
#if TYPE_EXPORTS
#define EXTERN_TYPE __declspec (dllexport)
#else
|