wchar: make glibc happy - sob - simple output bar
 (HTM) git clone git://git.codemadness.org/sob
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 88b89ef7b2ca23aaa444507ba388d05a5d52fe7c
 (DIR) parent 953439a2efe7bf8be200be0d384377d1d96f4d48
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Fri, 10 Oct 2014 18:57:02 +0000
       
       wchar: make glibc happy
       
       Diffstat:
         M config.mk                           |      10 +++++-----
         M sob.c                               |       2 --
       
       2 files changed, 5 insertions(+), 7 deletions(-)
       ---
 (DIR) diff --git a/config.mk b/config.mk
       @@ -11,15 +11,15 @@ INCS = -I. -I/usr/include
        LIBS = -L/usr/lib -lc -lncurses
        
        # flags
       -CPPFLAGS = -DVERSION=\"${VERSION}\" -D_POSIX_C_SOURCE=200809 -D_BSD_SOURCE
       +CPPFLAGS = -DVERSION=\"${VERSION}\" -D_POSIX_C_SOURCE=200809 -D_BSD_SOURCE -D_XOPEN_SOURCE
        
        # debug
       -#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
       -#LDFLAGS = ${LIBS}
       +CFLAGS = -g -std=c99 -pedantic -Wall -Wextra -O0 ${INCS} ${CPPFLAGS}
       +LDFLAGS = ${LIBS}
        
        # release
       -CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
       -LDFLAGS = -s ${LIBS}
       +#CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
       +#LDFLAGS = -s ${LIBS}
        
        # compiler and linker
        CC = cc
 (DIR) diff --git a/sob.c b/sob.c
       @@ -11,8 +11,6 @@
        #include <sys/select.h>
        #include <unistd.h>
        #include <termios.h>
       -
       -#define __XOPEN_SOURCE
        #include <wchar.h>
        
        #include "arg.h"