Skip to content

Commit 606eb73

Browse files
committed
Force gcc to use -std=gnu99.
1 parent 8a52fc4 commit 606eb73

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

frotz/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ CFLAGS += -Wall -Wextra -std=gnu99 -fPIC -Werror=implicit-function-declaration
1818
# These are good for regular use.
1919
# OPTS = -O2 -fomit-frame-pointer -falign-functions=2 -falign-loops=2 -falign-jumps=2 -fPIC
2020
# OPTS = -O3 -fomit-frame-pointer -falign-functions=2 -falign-loops=2 -falign-jumps=2 -fPIC
21-
OPTS = -O3 -fPIC
21+
OPTS = -O3 -std=gnu99 -fPIC
2222
# These are handy for debugging.
2323
# OPTS = $(CFLAGS) -g -fPIC
2424
# These are handy for profiling

frotz/src/common/frotz.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ void z_window_style (void);
692692

693693
void init_err (void);
694694
void runtime_error (int);
695-
695+
696696
/* Error codes */
697697
#define ERR_TEXT_BUF_OVF 1 /* Text buffer overflow */
698698
#define ERR_STORE_RANGE 2 /* Store out of dynamic memory */
@@ -730,7 +730,7 @@ void runtime_error (int);
730730
#define ERR_REMOVE_OBJECT_0 31 /* @remove_object called with object 0 */
731731
#define ERR_GET_NEXT_PROP_0 32 /* @get_next_prop called with object 0 */
732732
#define ERR_NUM_ERRORS (32)
733-
733+
734734
/* There are four error reporting modes: never report errors;
735735
report only the first time a given error type occurs; report
736736
every time an error occurs; or treat all errors as fatal

0 commit comments

Comments
 (0)