From 67d04daa08495b55eacb3013a0e5c89b531ffcd0 Mon Sep 17 00:00:00 2001 From: Alex Smith Date: Mon, 30 Jun 2008 17:52:44 -0400 Subject: [PATCH] Make abcess.h and ick_ec.h and stdint.h play nicely with each other --- src/abcess.h | 2 ++ src/ick_ec.h | 7 ++++++- src/perpet.c | 6 ++---- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/abcess.h b/src/abcess.h index 2d72cb1..65677ca 100644 --- a/src/abcess.h +++ b/src/abcess.h @@ -17,6 +17,8 @@ typedef int ick_bool; #define ICKBOOL_DEFINED #endif +#define ICK_ABCESS_H_INCLUDED + #define ick_TRUE 1 #define ick_FALSE 0 diff --git a/src/ick_ec.h b/src/ick_ec.h index 0246090..e8476da 100644 --- a/src/ick_ec.h +++ b/src/ick_ec.h @@ -49,10 +49,15 @@ LICENSE TERMS #if ICK_HAVE_STDINT_H+1 == 2 #include #else -typedef unsigned long uint32_t; +typedef unsigned int uint32_t; typedef unsigned short uint16_t; #endif +#ifndef ICK_ABCESS_H_INCLUDED +typedef unsigned short ick_type16; +typedef unsigned int ick_type32; +#endif + #define ICK_EC_FUNC_START(id) \ ICK_EC_PP_0(id) \ void id(void) \ diff --git a/src/perpet.c b/src/perpet.c index 06dade1..cef5b84 100644 --- a/src/perpet.c +++ b/src/perpet.c @@ -1625,14 +1625,12 @@ int main(int argc, char *argv[]) #else (void) sprintf(buf2, #endif -#define XSTR(x) #x -#define IHSH XSTR(ICK_HAVE_STDINT_H) "%s -L%s -L%s -L%s/../lib -O2 -o %s" EXEEXT "%s " #ifndef __DJGPP__ "-Wl,-z,muldefs " #endif -"-DICK_HAVE_STDINT_H=%s -x c --std=c%d %s", compiler, libdir, -path, path, argv[oldoptind], cdebug?" -g":"", IHSH, +"-DICK_HAVE_STDINT_H=%d -lm -x c --std=c%d %s", compiler, libdir, +path, path, argv[oldoptind], cdebug?" -g":"", ICK_HAVE_STDINT_H+1==2?1:0, needc99?99:89,tempfn); #if 0 ); /* for Emacs' autoindenter */ -- 2.43.0