diff options
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
|