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.
This commit is contained in:
Olaf Bergmann committed 2017-08-02 21:11:17 +02:00
1 parent 44f392d29a
commit 7dfeb91978
1 file changed
+3 -3
+3 -3
View File
@@ -1,7 +1,7 @@
/*
* coap.h -- main header file for CoAP stack of libcoap
*
* Copyright (C) 2010-2012,2015-2016 Olaf Bergmann <bergmann@tzi.org>
* Copyright (C) 2010-2012,2015-2017 Olaf Bergmann <bergmann@tzi.org>
* 2015 Carsten Schoenert <c.schoenert@t-online.de>
*
* 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"