Skip to content

Commit

Permalink
refactor: move from c17 to gnu17
Browse files Browse the repository at this point in the history
Seeing as it's the default anyway... Lots of churn in the previous
commits for no good reason.

Well, maybe not nothing: one positive is that we're now being explicit
about what we depend on instead of just silently depending on it.
  • Loading branch information
wincent committed Aug 18, 2024
1 parent d16c325 commit 42c8197
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion lua/wincent/commandt/lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

SHELL := /bin/bash

CCFLAGS += -std=c17 -Wall -Wextra -Wno-unused-parameter
CCFLAGS += -std=gnu17 -Wall -Wextra -Wno-unused-parameter

LBITS := $(shell getconf LONG_BIT)
ifeq ($(LBITS),64)
Expand Down
2 changes: 0 additions & 2 deletions lua/wincent/commandt/lib/xmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

#include "xmap.h"

#define _GNU_SOURCE /* for MAP_ANONYMOUS, MAP_NORESERVE */

#include <assert.h> /* for assert() */
#include <stddef.h> /* for NULL */
#include <stdlib.h> /* for abort() */
Expand Down
2 changes: 0 additions & 2 deletions lua/wincent/commandt/lib/xstrdup.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

#include "xstrdup.h"

#define _POSIX_C_SOURCE 200809L /* needed in order to see strdup() */

#include <stddef.h> /* for NULL */
#include <stdlib.h> /* for abort() */
#include <string.h> /* for strdup() */
Expand Down

0 comments on commit 42c8197

Please sign in to comment.