From 031c5abf0ff0e75bec7aea48a064611138a0de64 Mon Sep 17 00:00:00 2001 From: Phil Miller - NOAA Date: Mon, 24 Jun 2024 14:18:02 -0700 Subject: [PATCH] Replace #define of BMI_SUCCESS and BMI_FAILURE with const static int, to avoid conflicts with bmi-cxx/bmi.hxx (#13) --- bmi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bmi.h b/bmi.h index 085f7ee..f2dd2b5 100644 --- a/bmi.h +++ b/bmi.h @@ -5,8 +5,8 @@ extern "C" { #endif -#define BMI_SUCCESS (0) -#define BMI_FAILURE (1) +const static int BMI_SUCCESS = 0; +const static int BMI_FAILURE = 1; #define BMI_MAX_UNITS_NAME (2048) #define BMI_MAX_TYPE_NAME (2048)