summaryrefslogtreecommitdiff
path: root/include/ipmitool/ipmi_hpmfwupg.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ipmitool/ipmi_hpmfwupg.h')
-rw-r--r--include/ipmitool/ipmi_hpmfwupg.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/include/ipmitool/ipmi_hpmfwupg.h b/include/ipmitool/ipmi_hpmfwupg.h
index de65292..a994b9f 100644
--- a/include/ipmitool/ipmi_hpmfwupg.h
+++ b/include/ipmitool/ipmi_hpmfwupg.h
@@ -30,9 +30,22 @@
* EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
*/
+
#ifndef IPMI_HPMFWUPG_H
#define IPMI_HPMFWUPG_H
+
+#ifdef IPMI_HPMFWUPG_MOD
+
+ #define EXTERN
+
+#else
+
+ #define EXTERN extern
+
+#endif
+
+
#include <inttypes.h>
#include <ipmitool/ipmi.h>
@@ -800,10 +813,12 @@ typedef struct _VERSIONINFO {
char descString[HPMFWUPG_DESC_STRING_LENGTH + 1];
}VERSIONINFO, *PVERSIONINFO;
-VERSIONINFO gVersionInfo[HPMFWUPG_COMPONENT_ID_MAX];
+EXTERN VERSIONINFO gVersionInfo[HPMFWUPG_COMPONENT_ID_MAX];
#define TARGET_VER (0x01)
#define ROLLBACK_VER (0x02)
#define IMAGE_VER (0x04)
#endif /* IPMI_KFWUM_H */
+
+#undef EXTERN