From b793dd3de86cf160ce5ae25555e71e67b69793a8 Mon Sep 17 00:00:00 2001 From: MuQun Yang Date: Mon, 12 Mar 2001 12:18:06 -0500 Subject: [svn-r3607] Purpose: change macro RGB into HDF5_RGB since RGB is defined on windows platforms Description: Solution: Platforms tested: eirene --- tools/h4toh5/h4toh5pal.c | 2 +- tools/h4toh5/h4toh5util.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/h4toh5/h4toh5pal.c b/tools/h4toh5/h4toh5pal.c index 556ecdc..bf90acd 100644 --- a/tools/h4toh5/h4toh5pal.c +++ b/tools/h4toh5/h4toh5pal.c @@ -144,7 +144,7 @@ int Palette_h4_to_h5(int32 file_id,int32 pal_id,hid_t h5g,char*pal_name) { strcpy(palette_label,PALABEL); strcpy(palette_class,PALETTE); strcpy(palette_type,PAL_TYPE); - strcpy(palette_colormodel,RGB); + strcpy(palette_colormodel,HDF5_RGB); /* convert palette annotation into attribute of palette dataset. Since there are no routines to find the exact tag of palette object, we will check three possible object tags of palette objects, that is: diff --git a/tools/h4toh5/h4toh5util.h b/tools/h4toh5/h4toh5util.h index 7e3def7..ba2420f 100644 --- a/tools/h4toh5/h4toh5util.h +++ b/tools/h4toh5/h4toh5util.h @@ -62,7 +62,7 @@ converter.*/ #define HDF4_PALETTE_TYPE "PAL_TYPE" #define PAL_TYPE "STANDARD8" #define PAL_COLORMODEL "PAL_COLORMODEL" -#define RGB "RGB" +#define HDF5_RGB "RGB" /* 3. reserved name for HDF5 object name when meeting with name clashing. */ #define HDF4_VGROUP "HDF4_VGROUP" -- cgit v0.12