Use globally scoped typedefs for emulated stdint types
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/84db7f8d Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/84db7f8d Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/84db7f8d Branch: refs/heads/msvc6 Commit: 84db7f8dac7576f0dfcb48ce41461c135517a8ae Parents: f4472c9 Author: Nick Wellnhofer <[email protected]> Authored: Sun Nov 4 13:44:33 2012 +0100 Committer: Nick Wellnhofer <[email protected]> Committed: Sun Nov 4 13:58:39 2012 +0100 ---------------------------------------------------------------------- charmonizer/src/Charmonizer/Probe/Integers.c | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy/blob/84db7f8d/charmonizer/src/Charmonizer/Probe/Integers.c ---------------------------------------------------------------------- diff --git a/charmonizer/src/Charmonizer/Probe/Integers.c b/charmonizer/src/Charmonizer/Probe/Integers.c index 3c5cb55..f18e808 100644 --- a/charmonizer/src/Charmonizer/Probe/Integers.c +++ b/charmonizer/src/Charmonizer/Probe/Integers.c @@ -251,22 +251,22 @@ chaz_Integers_run(void) { * uint64_t */ if (has_8) { - chaz_ConfWriter_add_typedef("signed char", "int8_t"); - chaz_ConfWriter_add_typedef("unsigned char", "uint8_t"); + chaz_ConfWriter_add_global_typedef("signed char", "int8_t"); + chaz_ConfWriter_add_global_typedef("unsigned char", "uint8_t"); } if (has_16) { - chaz_ConfWriter_add_typedef("signed short", "int16_t"); - chaz_ConfWriter_add_typedef("unsigned short", "uint16_t"); + chaz_ConfWriter_add_global_typedef("signed short", "int16_t"); + chaz_ConfWriter_add_global_typedef("unsigned short", "uint16_t"); } if (has_32) { - chaz_ConfWriter_add_typedef(i32_t_type, "int32_t"); + chaz_ConfWriter_add_global_typedef(i32_t_type, "int32_t"); sprintf(scratch, "unsigned %s", i32_t_type); - chaz_ConfWriter_add_typedef(scratch, "uint32_t"); + chaz_ConfWriter_add_global_typedef(scratch, "uint32_t"); } if (has_64) { - chaz_ConfWriter_add_typedef(i64_t_type, "int64_t"); + chaz_ConfWriter_add_global_typedef(i64_t_type, "int64_t"); sprintf(scratch, "unsigned %s", i64_t_type); - chaz_ConfWriter_add_typedef(scratch, "uint64_t"); + chaz_ConfWriter_add_global_typedef(scratch, "uint64_t"); } } if (has_8) {
