From d87cbe321079242147e7cbe4c2625c9aa48d61cd Mon Sep 17 00:00:00 2001 From: vit9696 Date: Tue, 8 May 2018 10:48:04 +0300 Subject: [PATCH] Slightly more portable PRIX64 workaround --- common/ffsparser.cpp | 8 ++++---- common/nvramparser.cpp | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/common/ffsparser.cpp b/common/ffsparser.cpp index 1f52d56..754b97a 100644 --- a/common/ffsparser.cpp +++ b/common/ffsparser.cpp @@ -10,15 +10,15 @@ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHWARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. */ +// A workaround for compilers not supporting c++11 and c11 +// for using PRIX64. +#define __STDC_FORMAT_MACROS + #include "ffsparser.h" #include #include -#ifdef __WIN32__ // To workaround PRIX64 issues -#include -#else #include -#endif #include "descriptor.h" #include "ffs.h" diff --git a/common/nvramparser.cpp b/common/nvramparser.cpp index 16c7edb..e7dcb7a 100644 --- a/common/nvramparser.cpp +++ b/common/nvramparser.cpp @@ -12,11 +12,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. */ -#ifdef __WIN32__ // To workaround PRIX64 issues -#include -#else +// A workaround for compilers not supporting c++11 and c11 +// for using PRIX64. +#define __STDC_FORMAT_MACROS + #include -#endif #include #include "nvramparser.h"