From 3f28eed5a32efea327f1c62d49f1572abb20671a Mon Sep 17 00:00:00 2001 From: Ed Hartnett Date: Tue, 2 Apr 2019 09:19:36 -0600 Subject: [PATCH] changes --- configure.ac | 6 +++--- src/clib/pioc_support.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index f34b9d466c0..50d86b30c27 100644 --- a/configure.ac +++ b/configure.ac @@ -7,9 +7,9 @@ AC_CONFIG_SRCDIR(src/clib/pio_darray.c) AM_INIT_AUTOMAKE([foreign serial-tests]) # The PIO version, again. -AC_DEFINE([VERSION_MAJOR], [2], [PIO major version]) -AC_DEFINE([VERSION_MINOR], [4], [PIO minor version]) -AC_DEFINE([VERSION_PATCH], [1], [PIO patch version]) +AC_DEFINE([PIO_VERSION_MAJOR], [2], [PIO major version]) +AC_DEFINE([PIO_VERSION_MINOR], [4], [PIO minor version]) +AC_DEFINE([PIO_VERSION_PATCH], [1], [PIO patch version]) # Once more for the documentation. AC_SUBST([VERSION_MAJOR], [2]) diff --git a/src/clib/pioc_support.c b/src/clib/pioc_support.c index 2d1680dd294..ecf52c862a5 100644 --- a/src/clib/pioc_support.c +++ b/src/clib/pioc_support.c @@ -1231,7 +1231,7 @@ int pioc_write_nc_decomp_int(iosystem_desc_t *ios, const char *filename, int cmo /* Write an attribute with the version of this file. */ char version[PIO_MAX_NAME + 1]; - sprintf(version, "%d.%d.%d", VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH); + sprintf(version, "%d.%d.%d", PIO_VERSION_MAJOR, PIO_VERSION_MINOR, PIO_VERSION_PATCH); if ((ret = PIOc_put_att_text(ncid, NC_GLOBAL, DECOMP_VERSION_ATT_NAME, strlen(version) + 1, version))) return pio_err(ios, NULL, ret, __FILE__, __LINE__);