Changeset 1668208


Ignore:
Timestamp:
12/10/18 17:27:50 (23 months ago)
Author:
Shane Alcock <salcock@…>
Branches:
develop
Children:
6327ce6, 692bf9c, b359a11, d9ca546
Parents:
ccabd47
Message:

Force compiler to use gnu99 standard where possible

Older gccs don't automatically like the use of 'restrict', so
you need at least c99 standard for that. However, we also need
some of the pthread GNU extensions (pthread_spinlock_t, in
particular) so we have to use gnu99.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/Makefile.am

    r5964f52 r1668208  
    1010        data-struct/simple_circular_buffer.h
    1111
    12 AM_CFLAGS=@LIBCFLAGS@ @CFLAG_VISIBILITY@ -pthread
    13 AM_CXXFLAGS=@LIBCXXFLAGS@ @CFLAG_VISIBILITY@ -pthread
     12AM_CFLAGS=@LIBCFLAGS@ @CFLAG_VISIBILITY@ -pthread -std=gnu99
     13AM_CXXFLAGS=@LIBCXXFLAGS@ @CFLAG_VISIBILITY@ -pthread -std=gnu99
    1414
    1515extra_DIST = format_template.c
Note: See TracChangeset for help on using the changeset viewer.