Module Name: src
Committed By: christos
Date: Mon Jan 21 21:38:03 UTC 2013
Modified Files:
src/external/bsd/elftosb/dist/common: EncoreBootImage.h
Log Message:
When abusing enums, please at least use valid constants...
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/bsd/elftosb/dist/common/EncoreBootImage.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/elftosb/dist/common/EncoreBootImage.h
diff -u src/external/bsd/elftosb/dist/common/EncoreBootImage.h:1.1 src/external/bsd/elftosb/dist/common/EncoreBootImage.h:1.2
--- src/external/bsd/elftosb/dist/common/EncoreBootImage.h:1.1 Thu Nov 15 14:49:13 2012
+++ src/external/bsd/elftosb/dist/common/EncoreBootImage.h Mon Jan 21 16:38:02 2013
@@ -97,12 +97,10 @@ public:
ROM_VERBOSE_PROGRESS = (1 << 1) //!< Progress reports are verbose.
};
- enum {
- ROM_IMAGE_HEADER_SIGNATURE = 'STMP', //!< Signature in #elftosb::EncoreBootImage::boot_image_header_t::m_signature.
- ROM_IMAGE_HEADER_SIGNATURE2 = 'sgtl', //!< Value for #elftosb::EncoreBootImage::boot_image_header_t::m_signature2;
- ROM_BOOT_IMAGE_MAJOR_VERSION = 1, //!< Current boot image major version.
- ROM_BOOT_IMAGE_MINOR_VERSION = 1 //!< Current boot image minor version.
- };
+#define ROM_IMAGE_HEADER_SIGNATURE "STMP" //!< Signature in #elftosb::EncoreBootImage::boot_image_header_t::m_signature.
+#define ROM_IMAGE_HEADER_SIGNATURE2 "sgtl" //!< Value for #elftosb::EncoreBootImage::boot_image_header_t::m_signature2;
+#define ROM_BOOT_IMAGE_MAJOR_VERSION 1 //!< Current boot image major version.
+#define ROM_BOOT_IMAGE_MINOR_VERSION 1 //!< Current boot image minor version.
enum {
//! Minimum alignment for a section is 16 bytes.