[libfann] 158/242: dll stuff
Christian Kastner
chrisk-guest at moszumanska.debian.org
Sat Oct 4 21:10:38 UTC 2014
This is an automated email from the git hooks/post-receive script.
chrisk-guest pushed a commit to tag Version2_0_0
in repository libfann.
commit afff7b11f267b76906e33eefb3dc02c71d9970bb
Author: Steffen Nissen <lukesky at diku.dk>
Date: Mon Jul 12 18:06:38 2004 +0000
dll stuff
---
src/include/fann.h | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/src/include/fann.h b/src/include/fann.h
index d426a7b..5c7a271 100644
--- a/src/include/fann.h
+++ b/src/include/fann.h
@@ -80,7 +80,21 @@ extern "C" {
int FANN_API user_callback(unsigned int epochs, float error)
*/
-#ifdef _MSC_VER
+/*
+ The following sets the default for MSVC++ 2003 or later to use
+ the fann dll's. To use a lib or fixedfann.c, floatfann.c or doublefann.c
+ with those compilers FANN_NO_DLL has to be defined before
+ including the fann headers.
+ The default for previous MSVC compilers such as VC++ 6 is not
+ to use dll's. To use dll's FANN_USE_DLL has to be defined before
+ including the fann headers.
+*/
+#if (_MSC_VER > 1300)
+#ifndef FANN_NO_DLL
+#define FANN_USE_DLL
+#endif /* FANN_USE_LIB */
+#endif /* _MSC_VER */
+#if defined(_MSC_VER) && (defined(FANN_USE_DLL) || defined(FANN_DLL_EXPORTS))
#ifdef FANN_DLL_EXPORTS
#define FANN_EXTERNAL __declspec(dllexport)
#else
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/libfann.git
More information about the debian-science-commits
mailing list