Skip to content

Commit

Permalink
Set the C standard we use for compiling userland to gnu99.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sascha Wildner committed Jan 16, 2011
1 parent e49a8a3 commit 7281946
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions share/mk/bsd.sys.mk
Expand Up @@ -4,18 +4,18 @@
# This file contains common settings used for building DragonFly
# sources.

.if defined(CSTD)
. if ${CSTD} == "k&r"
CSTD?= gnu99

.if ${CSTD} == "k&r"
CFLAGS += -traditional
. elif ${CSTD} == "c89" || ${CSTD} == "c90"
.elif ${CSTD} == "c89" || ${CSTD} == "c90"
CFLAGS += -std=iso9899:1990
. elif ${CSTD} == "c94" || ${CSTD} == "c95"
.elif ${CSTD} == "c94" || ${CSTD} == "c95"
CFLAGS += -std=iso9899:199409
. elif ${CSTD} == "c99"
.elif ${CSTD} == "c99"
CFLAGS += -std=iso9899:1999
. else
.else
CFLAGS += -std=${CSTD}
. endif
.endif

# Enable various levels of compiler warning checks. These may be
Expand Down

0 comments on commit 7281946

Please sign in to comment.