checking sizeof (void) at the runtime
This commit is contained in:
parent
e8943b5aa1
commit
c9c8daac45
1 changed files with 5 additions and 0 deletions
5
main.c
5
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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue