From 136dbd0093b6133ea9f09108f4f412114ea891ae Mon Sep 17 00:00:00 2001 From: antma Date: Fri, 10 Jan 2014 16:30:56 +0400 Subject: [PATCH] checking sizeof (void) at the runtime --- main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.c b/main.c index 4d74782..56094cc 100644 --- a/main.c +++ b/main.c @@ -181,6 +181,11 @@ char *make_full_path (char *s) { } void running_for_first_time (void) { + if (sizeof (void) != 1) { + logprintf ("sizeof (void) isn't equal 1\n"); + logprintf ("GNU C compiler extension isn't available?\n"); + exit (1); + } if (config_filename) { return; // Do not create custom config file }