mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-24 16:11:03 +03:00
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:
1 parent
44f392d29a
commit
7dfeb91978
1 file changed
+3
-3
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user