summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2011-11-04 18:51:41 +0000
committerenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2011-11-04 18:51:41 +0000
commitb8faa5864516b203ebd28963f61e0ee14effc131 (patch)
tree180e249176b584debd0f04f4d49db6e5d724cbda /src
parentadd53ee43c546a41b24a2a018962452fd0adebba (diff)
downloadmpc-b8faa5864516b203ebd28963f61e0ee14effc131.tar.gz
mpc.h, mpc-impl.h: removed __MPC_WITHIN_MPC, since now mpc-impl.h is
included only for the library build git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1115 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'src')
-rw-r--r--src/mpc-impl.h7
-rw-r--r--src/mpc.h2
2 files changed, 1 insertions, 8 deletions
diff --git a/src/mpc-impl.h b/src/mpc-impl.h
index 4d8aa58..13582d1 100644
--- a/src/mpc-impl.h
+++ b/src/mpc-impl.h
@@ -21,13 +21,6 @@ along with this program. If not, see http://www.gnu.org/licenses/ .
#ifndef __MPC_IMPL_H
#define __MPC_IMPL_H
-/* If mpc-impl.h is included, we are either in the library build or in the
- tests. Define __MPC_WITHIN_MPC in the first case, since Windows DLL needs
- different export/import directives. Without effect outside Windows DLL. */
-#ifndef __MPC_TESTS_H
-#define __MPC_WITHIN_MPC 1
-#endif
-
#include "config.h"
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
diff --git a/src/mpc.h b/src/mpc.h
index ee6e7f6..5b6ec46 100644
--- a/src/mpc.h
+++ b/src/mpc.h
@@ -123,7 +123,7 @@ typedef __gmp_const __mpc_struct *mpc_srcptr;
/* Support for WINDOWS DLL, see
http://lists.gforge.inria.fr/pipermail/mpc-discuss/2011-November/000990.html;
when building the DLL, export symbols, otherwise behave as GMP */
-#if defined (__MPC_WITHIN_MPC) && __GMP_LIBGMP_DLL
+#if defined (__MPC_IMPL_H) && __GMP_LIBGMP_DLL
#define __MPC_DECLSPEC __GMP_DECLSPEC_EXPORT
#else
#define __MPC_DECLSPEC __GMP_DECLSPEC