mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-14 09:48:01 +08:00
Move EXTERN_C to util.h
This commit is contained in:
parent
f2df6c114d
commit
84f3fb0ba5
@ -3706,14 +3706,6 @@ void mg_timer_poll(unsigned long now_ms) {
|
||||
#include <mbedtls/debug.h>
|
||||
#include <mbedtls/ssl.h>
|
||||
|
||||
#ifndef EXTERN_C
|
||||
#ifdef __cplusplus
|
||||
#define EXTERN_C extern "C"
|
||||
#else
|
||||
#define EXTERN_C
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(MBEDTLS_VERSION_NUMBER) && MBEDTLS_VERSION_NUMBER >= 0x03000000
|
||||
#define RNG , rng_get, NULL
|
||||
#else
|
||||
|
@ -609,6 +609,14 @@ void mg_usleep(unsigned long usecs);
|
||||
#define mg_htons(x) mg_ntohs(x)
|
||||
#define mg_htonl(x) mg_ntohl(x)
|
||||
|
||||
#ifndef EXTERN_C
|
||||
#ifdef __cplusplus
|
||||
#define EXTERN_C extern "C"
|
||||
#else
|
||||
#define EXTERN_C
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Expands to a string representation of its argument: e.g.
|
||||
// MG_STRINGIFY_LITERAL(5) expands to "5"
|
||||
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
|
@ -8,14 +8,6 @@
|
||||
#include <mbedtls/debug.h>
|
||||
#include <mbedtls/ssl.h>
|
||||
|
||||
#ifndef EXTERN_C
|
||||
#ifdef __cplusplus
|
||||
#define EXTERN_C extern "C"
|
||||
#else
|
||||
#define EXTERN_C
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(MBEDTLS_VERSION_NUMBER) && MBEDTLS_VERSION_NUMBER >= 0x03000000
|
||||
#define RNG , rng_get, NULL
|
||||
#else
|
||||
|
@ -27,6 +27,14 @@ void mg_usleep(unsigned long usecs);
|
||||
#define mg_htons(x) mg_ntohs(x)
|
||||
#define mg_htonl(x) mg_ntohl(x)
|
||||
|
||||
#ifndef EXTERN_C
|
||||
#ifdef __cplusplus
|
||||
#define EXTERN_C extern "C"
|
||||
#else
|
||||
#define EXTERN_C
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Expands to a string representation of its argument: e.g.
|
||||
// MG_STRINGIFY_LITERAL(5) expands to "5"
|
||||
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
||||
|
Loading…
x
Reference in New Issue
Block a user