mirror of
https://github.com/OpenVPN/openvpn.git
synced 2025-05-08 21:25:53 +08:00
configure: Switch to C11 by default
Mostly so we can use anonymous structs without jumping through hoops or relying on unofficial support. Change-Id: I72934e747d1ad68a7e3675afbeb1b63df7941186 Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com> Acked-by: Arne Schwabe <arne-openvpn@rfc2549.org> Message-Id: <20240710160306.190351-1-frank@lichtenheld.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg28916.html Signed-off-by: Gert Doering <gert@greenie.muc.de>
This commit is contained in:
parent
be31325e1d
commit
37b696a207
@ -119,7 +119,7 @@ set(OPENVPN_VERSION_MINOR ${PRODUCT_VERSION_MINOR})
|
||||
set(OPENVPN_VERSION_PATCH ${PRODUCT_VERSION_PATCH})
|
||||
set(OPENVPN_VERSION_RESOURCE ${PRODUCT_VERSION_RESOURCE})
|
||||
|
||||
set(CMAKE_C_STANDARD 99)
|
||||
set(CMAKE_C_STANDARD 11)
|
||||
|
||||
# Set the various defines for config.h.cmake.in
|
||||
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
||||
|
@ -421,10 +421,10 @@ AC_CHECK_PROGS([RST2MAN], [rst2man rst2man.py])
|
||||
AC_CHECK_PROGS([RST2HTML], [rst2html rst2html.py])
|
||||
AM_CONDITIONAL([HAVE_PYDOCUTILS], [test "${RST2MAN}" -a "${RST2HTML}"])
|
||||
|
||||
# Set -std=c99 unless user already specified a -std=
|
||||
# Set -std=c11 unless user already specified a -std=
|
||||
case "${CFLAGS}" in
|
||||
*-std=*) ;;
|
||||
*) CFLAGS="${CFLAGS} -std=c99" ;;
|
||||
*) CFLAGS="${CFLAGS} -std=c11" ;;
|
||||
esac
|
||||
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user