Commit b4a865ee authored by Francis Dupont's avatar Francis Dupont
Browse files

merge rt33813: MSVC doesn't propage const to dynamic array sizes

parent c2132583
......@@ -106,7 +106,7 @@ typedef struct file_header file_header_t;
static char FILE_VERSION[32] = "\0";
/* Header length, always the same size regardless of structure size */
const unsigned int HEADER_LENGTH = 1024;
#define HEADER_LENGTH 1024
struct file_header {
char version1[32];
......
......@@ -103,7 +103,7 @@ typedef struct rbtdb_file_header rbtdb_file_header_t;
static char FILE_VERSION[32] = "\0";
/* Header length, always the same size regardless of structure size */
static const unsigned int RBTDB_HEADER_LENGTH = 1024;
#define RBTDB_HEADER_LENGTH 1024
struct rbtdb_file_header {
char version1[32];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment