Skip to content

Commit

Permalink
remove Windows issue with VERSION definition
Browse files Browse the repository at this point in the history
  • Loading branch information
(no author) committed Apr 10, 2010
1 parent 4abb8c8 commit d54226b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gmp-h.in
Original file line number Diff line number Diff line change
Expand Up @@ -2381,7 +2381,7 @@ enum
#define __MPIR_VERSION_MINOR 0
#define __MPIR_VERSION_PATCHLEVEL 0
#if defined( _MSC_VER )
#define VERSION "2.0.0"
#define _MSC_MPIR_VERSION "2.0.0"
#endif

/* These are for programs like MPFR to use the same CC and CFLAGS as MPIR */
Expand Down
2 changes: 1 addition & 1 deletion setversion
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ cat gmp-h.in \
| sed s/"#define[[:space:]]\+__MPIR_VERSION[[:space:]]\+.*"/"#define __MPIR_VERSION "$VERSION/ \
| sed s/"#define[[:space:]]\+__MPIR_VERSION_MINOR[[:space:]]\+.*"/"#define __MPIR_VERSION_MINOR "$VERSION_MINOR/ \
| sed s/"#define[[:space:]]\+__MPIR_VERSION_PATCHLEVEL[[:space:]]\+.*"/"#define __MPIR_VERSION_PATCHLEVEL "$VERSION_PATCHLEVEL/ \
| sed s/"#define[[:space:]]\+VERSION[[:space:]]\+.*"/"#define VERSION "\"$VERSION_STR\"/ > $TMPFILE
| sed s/"#define[[:space:]]\+VERSION[[:space:]]\+.*"/"#define _MSC_MPIR_VERSION "\"$VERSION_STR\"/ > $TMPFILE
mv $TMPFILE gmp-h.in

#update build.vc9/config.*
Expand Down
4 changes: 4 additions & 0 deletions version.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,8 @@ MA 02110-1301, USA. */
#include "gmp-impl.h"

const char * const gmp_version = GMP_VERSION;
#if defined( _MSC_VER )
const char * const mpir_version = _MSC_MPIR_VERSION;
#else
const char * const mpir_version = VERSION;
#endif

0 comments on commit d54226b

Please sign in to comment.