From db17b0b3ad95f2147fc47fd42f75eeefbb4eb056 Mon Sep 17 00:00:00 2001 From: Phil Miller Date: Tue, 11 Jun 2024 10:37:25 -0700 Subject: [PATCH] Replace #define of BMI_SUCCESS and BMI_FAILURE with const static int, to avoid conflicts with bmi-cxx/bmi.hxx --- 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)