diff options
| author | Oskari Timperi <oskari.timperi@iki.fi> | 2017-02-14 23:51:48 +0200 |
|---|---|---|
| committer | Oskari Timperi <oskari.timperi@iki.fi> | 2017-02-14 23:51:48 +0200 |
| commit | 8fe0a3b672802ecbd75bdbcec4fed6a993f2af89 (patch) | |
| tree | 6d8522007d5e1be0b452baad275fa4e3d15ab4f1 /src/log.h | |
| parent | 7e0ff295f158e13b57462b00a24b79cc064b3e45 (diff) | |
| download | mqtt-8fe0a3b672802ecbd75bdbcec4fed6a993f2af89.tar.gz mqtt-8fe0a3b672802ecbd75bdbcec4fed6a993f2af89.zip | |
Include config.h initially with MQTT_INLINE definition
Diffstat (limited to 'src/log.h')
| -rw-r--r-- | src/log.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,6 +1,8 @@ #ifndef LOG_H #define LOG_H +#include "config.h" + #define LOG_LEVEL_DEBUG 0 #define LOG_LEVEL_INFO 1 #define LOG_LEVEL_WARNING 2 @@ -11,7 +13,7 @@ #else #include <stdio.h> #include <string.h> -static inline const char *log_basename(const char *s) +static MQTT_INLINE const char *log_basename(const char *s) { #if !defined(_WIN32) const char *p = strrchr(s, '/'); |
