From 7dfeb91978b10110a12696a45313502643c83d62 Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Wed, 2 Aug 2017 21:11:17 +0200 Subject: [PATCH] coap.h.in: avoid C++ name mangling for functions in libcoap.h To avoid function names being mangled when compiling with C++, the inclusion of libcoap.h has been moved into the extern "C" declaration for coap.h. --- include/coap/coap.h.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/coap/coap.h.in b/include/coap/coap.h.in index 058b2aa5..563040f1 100644 --- a/include/coap/coap.h.in +++ b/include/coap/coap.h.in @@ -1,7 +1,7 @@ /* * coap.h -- main header file for CoAP stack of libcoap * - * Copyright (C) 2010-2012,2015-2016 Olaf Bergmann + * Copyright (C) 2010-2012,2015-2017 Olaf Bergmann * 2015 Carsten Schoenert * * This file is part of the CoAP library libcoap. Please see README for terms @@ -11,8 +11,6 @@ #ifndef _COAP_H_ #define _COAP_H_ -#include "libcoap.h" - /* Define the address where bug reports for libcoap should be sent. */ #define LIBCOAP_PACKAGE_BUGREPORT "@PACKAGE_BUGREPORT@" @@ -32,6 +30,8 @@ extern "C" { #endif +#include "libcoap.h" + #include "address.h" #include "async.h" #include "bits.h"