From 622f1530c8a6badfbcaf8c59976348678fbe248b Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Tue, 1 Feb 2011 17:48:37 +0100 Subject: Generate temporary hardware.ini from configuration settings. This patch generates a temporary hardware.ini from the hardware configuration. The idea is to move as much hw config info as possible to a single file that the core can read. Other patches will change how various config info is passed to the core, from command-line options to the generated hardware.ini. --- android/utils/system.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'android/utils/system.h') diff --git a/android/utils/system.h b/android/utils/system.h index 5053786..c8163c6 100644 --- a/android/utils/system.h +++ b/android/utils/system.h @@ -14,6 +14,7 @@ #include #include +#include /* for PRId64 et al. */ #include "android/utils/assert.h" /* internal helpers */ @@ -161,6 +162,18 @@ extern void restore_sigalrm( signal_state_t *state ); extern void sleep_ms( int timeout ); +/** FORMATTING int64_t in printf() statements + ** + ** Normally defined in except on Windows and maybe others. + **/ + +#ifndef PRId64 +# define PRId64 "lld" +#endif +#ifndef PRIx64 +# define PRIx64 "llx" +#endif + /* */ #endif /* _ANDROID_UTILS_SYSTEM_H */ -- cgit v1.1