mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-06 05:41:37 +00:00
Fix some common code in printfmt.c and generate_offsets.cmake
This commit is contained in:
@@ -40,9 +40,9 @@ static int printnum(int (*_fputch)(void*, int, void*), void* f, void* putdat, un
|
||||
// Get an unsigned int of various possible sizes from a varargs list,
|
||||
// depending on the lflag parameter.
|
||||
#if !defined(__i386__)
|
||||
inline unsigned long long getuint(va_list ap, int lflag)
|
||||
static inline unsigned long long getuint(va_list ap, int lflag)
|
||||
#else
|
||||
inline unsigned long getuint(va_list ap, int lflag)
|
||||
static inline unsigned long getuint(va_list ap, int lflag)
|
||||
#endif
|
||||
{
|
||||
#if !defined(__i386__)
|
||||
@@ -57,9 +57,9 @@ inline unsigned long getuint(va_list ap, int lflag)
|
||||
// Same as getuint but signed - can't use getuint
|
||||
// because of sign extension
|
||||
#if !defined(__i386__)
|
||||
inline long long getint(va_list ap, int lflag)
|
||||
static inline long long getint(va_list ap, int lflag)
|
||||
#else
|
||||
inline long getint(va_list ap, int lflag)
|
||||
static inline long getint(va_list ap, int lflag)
|
||||
#endif
|
||||
{
|
||||
#if !defined(__i386__)
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
cmake_policy(SET CMP0054 NEW)
|
||||
|
||||
file(REMOVE ${OUTPUT_FILE})
|
||||
|
||||
if(${FORMAT} STREQUAL "C")
|
||||
|
||||
Reference in New Issue
Block a user