mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Remove remaining extern "C"
from codebase
This might require rebuilding the antibot
This commit is contained in:
parent
b8bbf89fe8
commit
e62293e56c
|
@ -19,8 +19,6 @@
|
|||
#include <android/log.h>
|
||||
#endif
|
||||
|
||||
extern "C" {
|
||||
|
||||
std::atomic<LEVEL> loglevel = LEVEL_INFO;
|
||||
std::atomic<ILogger *> global_logger = nullptr;
|
||||
thread_local ILogger *scope_logger = nullptr;
|
||||
|
@ -153,7 +151,6 @@ void log_log_color(LEVEL level, LOG_COLOR color, const char *sys, const char *fm
|
|||
log_log_impl(level, true, color, sys, fmt, args);
|
||||
va_end(args);
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(CONF_PLATFORM_ANDROID)
|
||||
class CLoggerAndroid : public ILogger
|
||||
|
|
|
@ -4,10 +4,6 @@
|
|||
#include <stdarg.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define GNUC_ATTRIBUTE(x) __attribute__(x)
|
||||
#else
|
||||
|
@ -93,8 +89,4 @@ void log_log_v(LEVEL level, const char *sys, const char *fmt, va_list args)
|
|||
*/
|
||||
void log_log_color_v(LEVEL level, LOG_COLOR color, const char *sys, const char *fmt, va_list args)
|
||||
GNUC_ATTRIBUTE((format(printf, 4, 0)));
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
#endif // BASE_LOG_H
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
#include <mutex>
|
||||
#include <vector>
|
||||
|
||||
extern "C" {
|
||||
|
||||
typedef struct IOINTERNAL *IOHANDLE;
|
||||
|
||||
/**
|
||||
|
@ -150,7 +148,6 @@ ILogger *log_get_scope_logger();
|
|||
* @see CLogScope
|
||||
*/
|
||||
void log_set_scope_logger(ILogger *logger);
|
||||
}
|
||||
|
||||
/**
|
||||
* @ingroup Log
|
||||
|
|
|
@ -83,8 +83,6 @@
|
|||
#include <sys/filio.h>
|
||||
#endif
|
||||
|
||||
extern "C" {
|
||||
|
||||
IOHANDLE io_stdin()
|
||||
{
|
||||
return (IOHANDLE)stdin;
|
||||
|
@ -4282,7 +4280,6 @@ void set_exception_handler_log_file(const char *log_file_path)
|
|||
#endif
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
std::chrono::nanoseconds time_get_nanoseconds()
|
||||
{
|
||||
|
|
|
@ -40,8 +40,6 @@
|
|||
#include <chrono>
|
||||
#include <functional>
|
||||
|
||||
extern "C" {
|
||||
|
||||
/**
|
||||
* @defgroup Debug
|
||||
*
|
||||
|
@ -2523,7 +2521,6 @@ int os_version_str(char *version, int length);
|
|||
void init_exception_handler();
|
||||
void set_exception_handler_log_file(const char *log_file_path);
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetches a sample from a high resolution timer and converts it in nanoseconds.
|
||||
|
|
|
@ -9,7 +9,6 @@ static int compul(const void *a, const void *b)
|
|||
return ul_a->upper - ul_b->upper;
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
int str_utf8_tolower(int code)
|
||||
{
|
||||
struct UPPER_LOWER key;
|
||||
|
@ -21,7 +20,6 @@ int str_utf8_tolower(int code)
|
|||
return code;
|
||||
return res->lower;
|
||||
}
|
||||
}
|
||||
|
||||
#define TOLOWER_DATA
|
||||
#include "tolower_data.h"
|
||||
|
|
Loading…
Reference in a new issue