diff options
author | David 'Digit' Turner <digit@android.com> | 2011-02-01 17:48:37 +0100 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2011-02-01 19:19:12 +0100 |
commit | 622f1530c8a6badfbcaf8c59976348678fbe248b (patch) | |
tree | 3847a94f8f82f0fd81ef69f3e04f02c72fee7ade /android/utils/system.h | |
parent | f4d4ca164dea606cee27e1f68d4742a3c57b0954 (diff) | |
download | external_qemu-622f1530c8a6badfbcaf8c59976348678fbe248b.zip external_qemu-622f1530c8a6badfbcaf8c59976348678fbe248b.tar.gz external_qemu-622f1530c8a6badfbcaf8c59976348678fbe248b.tar.bz2 |
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.
Diffstat (limited to 'android/utils/system.h')
-rw-r--r-- | android/utils/system.h | 13 |
1 files changed, 13 insertions, 0 deletions
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 <string.h> #include <stdint.h> +#include <inttypes.h> /* 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 <inttypes.h> except on Windows and maybe others. + **/ + +#ifndef PRId64 +# define PRId64 "lld" +#endif +#ifndef PRIx64 +# define PRIx64 "llx" +#endif + /* */ #endif /* _ANDROID_UTILS_SYSTEM_H */ |