Consistent use of config.h across the project.

This commit is contained in:
Roger A. Light
2018-08-16 11:14:51 +01:00
parent dde005ef92
commit 88765a5e80
42 changed files with 77 additions and 30 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
include_directories(${mosquitto_SOURCE_DIR}/lib
include_directories(${mosquitto_SOURCE_DIR} ${mosquitto_SOURCE_DIR}/lib
${STDBOOL_H_PATH} ${STDINT_H_PATH})
link_directories(${mosquitto_BINARY_DIR}/lib)
+1 -1
View File
@@ -14,7 +14,7 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#define _POSIX_C_SOURCE 200809L
#include "config.h"
#include <errno.h>
#include <fcntl.h>
+1 -2
View File
@@ -14,8 +14,7 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
/* For nanosleep */
#define _POSIX_C_SOURCE 200809L
#include "config.h"
#include <errno.h>
#include <fcntl.h>
+1 -1
View File
@@ -14,7 +14,7 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#define _POSIX_C_SOURCE 200809L
#include "config.h"
#include <assert.h>
#include <errno.h>
+1 -1
View File
@@ -14,7 +14,7 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#define _POSIX_C_SOURCE 200809L
#include "config.h"
#include <assert.h>
#include <errno.h>
+1 -1
View File
@@ -128,7 +128,7 @@ LIB_CXXFLAGS:=$(CFLAGS) ${CPPFLAGS} -I. -I.. -I../lib
LIB_LDFLAGS:=${LDFLAGS}
BROKER_CFLAGS:=${LIB_CFLAGS} ${CPPFLAGS} -DVERSION="\"${VERSION}\"" -DWITH_BROKER
CLIENT_CFLAGS:=${CFLAGS} ${CPPFLAGS} -I../lib -DVERSION="\"${VERSION}\""
CLIENT_CFLAGS:=${CFLAGS} ${CPPFLAGS} -I.. -I../lib -DVERSION="\"${VERSION}\""
ifneq ($(or $(findstring $(UNAME),FreeBSD), $(findstring $(UNAME),OpenBSD), $(findstring $(UNAME),NetBSD)),)
BROKER_LIBS:=-lm
+2
View File
@@ -14,6 +14,8 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#include "config.h"
#include <assert.h>
#include "mosquitto.h"
+2
View File
@@ -14,6 +14,8 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#include "config.h"
#include <assert.h>
#include <stdio.h>
#include <string.h>
+2
View File
@@ -14,6 +14,8 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#include "config.h"
#include <assert.h>
#include <stdio.h>
#include <string.h>
+2
View File
@@ -14,6 +14,8 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#include "config.h"
#include <assert.h>
#include <string.h>
+2
View File
@@ -14,6 +14,8 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#include "config.h"
#include <assert.h>
#include <stdio.h>
#include <string.h>
+2
View File
@@ -14,6 +14,8 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#include "config.h"
#include <assert.h>
#include <stdio.h>
#include <string.h>
+2
View File
@@ -14,6 +14,8 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#include "config.h"
#include <assert.h>
#ifdef WITH_BROKER
+2
View File
@@ -14,6 +14,8 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#include "config.h"
#include <assert.h>
#include <stdio.h>
#include <string.h>
+2
View File
@@ -14,6 +14,8 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#include "config.h"
#include <errno.h>
#include <stdbool.h>
+3
View File
@@ -13,6 +13,9 @@ and the Eclipse Distribution License is available at
Contributors:
Roger Light - initial implementation and documentation.
*/
#include "config.h"
#include <assert.h>
#include <stdarg.h>
#include <stdio.h>
+2
View File
@@ -14,6 +14,8 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#include "config.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
+2
View File
@@ -14,6 +14,8 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#include "config.h"
#include <assert.h>
#include <errno.h>
#include <string.h>
+2
View File
@@ -14,6 +14,8 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#include "config.h"
#include <assert.h>
#include <stdio.h>
#include <string.h>
+2
View File
@@ -14,6 +14,8 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#include "config.h"
#include <assert.h>
#include <string.h>
+2
View File
@@ -14,6 +14,8 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#include "config.h"
#include <assert.h>
#ifdef WITH_BROKER
+2
View File
@@ -14,6 +14,8 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#include "config.h"
#include <assert.h>
#include <stdio.h>
#include <string.h>
+2
View File
@@ -14,6 +14,8 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#include "config.h"
#include <assert.h>
#include <string.h>
+2
View File
@@ -14,6 +14,8 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#include "config.h"
#include <assert.h>
#include <string.h>
+2
View File
@@ -14,6 +14,8 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#include "config.h"
#include <assert.h>
#include <string.h>
+2
View File
@@ -14,6 +14,8 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#include "config.h"
#include <errno.h>
#include <string.h>
+2
View File
@@ -14,6 +14,8 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#include "config.h"
#ifdef WITH_SRV
# include <ares.h>
+2
View File
@@ -14,6 +14,8 @@ Contributors:
Roger Light - initial implementation.
*/
#include "config.h"
#include <stdio.h>
#include "mosquitto.h"
+2
View File
@@ -14,6 +14,8 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#include "config.h"
#include <assert.h>
#include <string.h>
+2
View File
@@ -14,6 +14,8 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#include "config.h"
#include <stdio.h>
#include <string.h>
+1 -1
View File
@@ -14,7 +14,7 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#include <config.h>
#include "config.h"
#include <limits.h>
#include <stdio.h>
+2 -2
View File
@@ -14,11 +14,11 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#include "config.h"
#include <assert.h>
#include <time.h>
#include "config.h"
#include "mosquitto_broker_internal.h"
#include "memory_mosq.h"
#include "packet_mosq.h"
+2 -2
View File
@@ -14,11 +14,11 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#include "config.h"
#include <assert.h>
#include <stdio.h>
#include "config.h"
#include "mosquitto_broker_internal.h"
#include "memory_mosq.h"
#include "send_mosq.h"
+2 -1
View File
@@ -14,7 +14,8 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#include <config.h>
#include "config.h"
#include <stdio.h>
#include <string.h>
+2 -2
View File
@@ -14,11 +14,11 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#include "config.h"
#include <stdio.h>
#include <string.h>
#include "config.h"
#include "mosquitto_broker_internal.h"
#include "mqtt3_protocol.h"
#include "memory_mosq.h"
+2 -2
View File
@@ -14,12 +14,12 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#include "config.h"
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include "config.h"
#include "mosquitto_broker_internal.h"
#include "mqtt3_protocol.h"
#include "memory_mosq.h"
+2 -2
View File
@@ -14,11 +14,11 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#include "config.h"
#include <stdio.h>
#include <string.h>
#include "config.h"
#include "mosquitto_broker_internal.h"
#include "memory_mosq.h"
#include "packet_mosq.h"
+2 -2
View File
@@ -14,11 +14,11 @@ Contributors:
Roger Light - initial implementation and documentation.
*/
#include "config.h"
#include <stdio.h>
#include <string.h>
#include "config.h"
#include "mosquitto_broker_internal.h"
#include "memory_mosq.h"
#include "mqtt3_protocol.h"
+2 -4
View File
@@ -13,6 +13,8 @@ and the Eclipse Distribution License is available at
Contributors:
Roger Light - initial implementation and documentation.
*/
#include "config.h"
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
@@ -21,10 +23,6 @@ Contributors:
#endif
#include <time.h>
#ifndef CMAKE
#include "config.h"
#endif
#include "mosquitto_broker_internal.h"
#include "memory_mosq.h"
#include "util_mosq.h"
+1 -3
View File
@@ -15,9 +15,7 @@ Contributors:
Tatsuzo Osawa - Add epoll.
*/
#define _GNU_SOURCE
#include <config.h>
#include "config.h"
#include <assert.h>
#ifndef WIN32
+2
View File
@@ -16,6 +16,8 @@ Contributors:
#if defined(WIN32) || defined(__CYGWIN__)
#include "config.h"
#include <windows.h>
#include "memory_mosq.h"
+2 -2
View File
@@ -16,11 +16,11 @@ Contributors:
#ifdef WITH_SYS_TREE
#include "config.h"
#include <math.h>
#include <stdio.h>
#include "config.h"
#include "mosquitto_broker_internal.h"
#include "memory_mosq.h"
#include "time_mosq.h"