mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-23 08:28:23 +08:00
Slightly more portable PRIX64 workaround
This commit is contained in:
parent
29c7d2cd91
commit
8abd090b07
@ -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.
|
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 "ffsparser.h"
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#ifdef __WIN32__ // To workaround PRIX64 issues
|
|
||||||
#include <cinttypes>
|
|
||||||
#else
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "descriptor.h"
|
#include "descriptor.h"
|
||||||
#include "ffs.h"
|
#include "ffs.h"
|
||||||
|
@ -12,11 +12,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef __WIN32__ // To workaround PRIX64 issues
|
// A workaround for compilers not supporting c++11 and c11
|
||||||
#include <cinttypes>
|
// for using PRIX64.
|
||||||
#else
|
#define __STDC_FORMAT_MACROS
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#endif
|
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
#include "nvramparser.h"
|
#include "nvramparser.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user