Slightly more portable PRIX64 workaround

This commit is contained in:
vit9696 2018-05-08 10:48:04 +03:00
parent afc5a44446
commit d87cbe3210
2 changed files with 8 additions and 8 deletions

View file

@ -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 <map>
#include <algorithm>
#ifdef __WIN32__ // To workaround PRIX64 issues
#include <cinttypes>
#else
#include <inttypes.h>
#endif
#include "descriptor.h"
#include "ffs.h"

View file

@ -12,11 +12,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
*/
#ifdef __WIN32__ // To workaround PRIX64 issues
#include <cinttypes>
#else
// A workaround for compilers not supporting c++11 and c11
// for using PRIX64.
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
#endif
#include <map>
#include "nvramparser.h"