From: Dale Weiler Date: Thu, 25 Apr 2013 12:22:34 +0000 (+0000) Subject: Less extern X-Git-Tag: 0.2.9~12 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2eddc464d551664d690aa30a34ab4b49faeb286b;p=xonotic%2Fgmqcc.git Less extern --- diff --git a/ir.h b/ir.h index 835773a..dac16a3 100644 --- a/ir.h +++ b/ir.h @@ -353,8 +353,13 @@ bool ir_builder_generate(code_t *, ir_builder *self, const char *filename); void ir_builder_dump(ir_builder*, int (*oprintf)(const char*, ...)); -/* This code assumes 32 bit floats while generating binary */ -extern int check_int_and_float_size -[ (sizeof(int32_t) == sizeof(qcfloat)) ? 1 : -1 ]; + +/* + * This code assumes 32 bit floats while generating binary + * Blub: don't use extern here, it's annoying and shows up in nm + * for some reason :P + */ +typedef int static_assert_is_32bit_float [(sizeof(int32_t) == 4)?1:-1]; +typedef int static_assert_is_32bit_integer[(sizeof(qcfloat) == 4)?1:-1]; #endif