Don't use reserved names in header guards.

Closes #3.
pull/139/head
Roger A. Light 10 years ago
parent 6c8c649ac2
commit 556c629ab5

@ -14,8 +14,8 @@ Contributors:
Roger Light - initial implementation and documentation. Roger Light - initial implementation and documentation.
*/ */
#ifndef _CLIENT_CONFIG_H #ifndef CLIENT_CONFIG_H
#define _CLIENT_CONFIG_H #define CLIENT_CONFIG_H
#include <stdio.h> #include <stdio.h>

@ -1,5 +1,5 @@
#ifndef _DUMMYPTHREAD_H_ #ifndef DUMMYPTHREAD_H
#define _DUMMYPTHREAD_H_ #define DUMMYPTHREAD_H
#define pthread_create(A, B, C, D) #define pthread_create(A, B, C, D)
#define pthread_join(A, B) #define pthread_join(A, B)

@ -13,8 +13,8 @@ and the Eclipse Distribution License is available at
Contributors: Contributors:
Roger Light - initial implementation and documentation. Roger Light - initial implementation and documentation.
*/ */
#ifndef _LOGGING_MOSQ_H_ #ifndef LOGGING_MOSQ_H
#define _LOGGING_MOSQ_H_ #define LOGGING_MOSQ_H
#include "mosquitto.h" #include "mosquitto.h"

@ -14,8 +14,8 @@ Contributors:
Roger Light - initial implementation and documentation. Roger Light - initial implementation and documentation.
*/ */
#ifndef _MEMORY_MOSQ_H_ #ifndef MEMORY_MOSQ_H
#define _MEMORY_MOSQ_H_ #define MEMORY_MOSQ_H
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>

@ -13,8 +13,8 @@ and the Eclipse Distribution License is available at
Contributors: Contributors:
Roger Light - initial implementation and documentation. Roger Light - initial implementation and documentation.
*/ */
#ifndef _MESSAGES_MOSQ_H_ #ifndef MESSAGES_MOSQ_H
#define _MESSAGES_MOSQ_H_ #define MESSAGES_MOSQ_H
#include "mosquitto_internal.h" #include "mosquitto_internal.h"
#include "mosquitto.h" #include "mosquitto.h"

@ -14,8 +14,8 @@ Contributors:
Roger Light - initial implementation and documentation. Roger Light - initial implementation and documentation.
*/ */
#ifndef _MOSQUITTO_H_ #ifndef MOSQUITTO_H
#define _MOSQUITTO_H_ #define MOSQUITTO_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

@ -14,8 +14,8 @@ Contributors:
Roger Light - initial implementation and documentation. Roger Light - initial implementation and documentation.
*/ */
#ifndef _MOSQUITTO_INTERNAL_H_ #ifndef MOSQUITTO_INTERNAL_H
#define _MOSQUITTO_INTERNAL_H_ #define MOSQUITTO_INTERNAL_H
#include "config.h" #include "config.h"

@ -14,8 +14,8 @@ Contributors:
Roger Light - initial implementation and documentation. Roger Light - initial implementation and documentation.
*/ */
#ifndef _MQTT3_PROTOCOL_H_ #ifndef MQTT3_PROTOCOL_H
#define _MQTT3_PROTOCOL_H_ #define MQTT3_PROTOCOL_H
/* For version 3 of the MQTT protocol */ /* For version 3 of the MQTT protocol */

@ -13,8 +13,8 @@ and the Eclipse Distribution License is available at
Contributors: Contributors:
Roger Light - initial implementation and documentation. Roger Light - initial implementation and documentation.
*/ */
#ifndef _NET_MOSQ_H_ #ifndef NET_MOSQ_H
#define _NET_MOSQ_H_ #define NET_MOSQ_H
#ifndef WIN32 #ifndef WIN32
#include <unistd.h> #include <unistd.h>

@ -13,8 +13,8 @@ and the Eclipse Distribution License is available at
Contributors: Contributors:
Roger Light - initial implementation and documentation. Roger Light - initial implementation and documentation.
*/ */
#ifndef _PACKET_MOSQ_H_ #ifndef PACKET_MOSQ_H
#define _PACKET_MOSQ_H_ #define PACKET_MOSQ_H
#include "mosquitto_internal.h" #include "mosquitto_internal.h"
#include "mosquitto.h" #include "mosquitto.h"

@ -13,8 +13,8 @@ and the Eclipse Distribution License is available at
Contributors: Contributors:
Roger Light - initial implementation and documentation. Roger Light - initial implementation and documentation.
*/ */
#ifndef _READ_HANDLE_H_ #ifndef READ_HANDLE_H
#define _READ_HANDLE_H_ #define READ_HANDLE_H
#include "mosquitto.h" #include "mosquitto.h"
struct mosquitto_db; struct mosquitto_db;

@ -13,8 +13,8 @@ and the Eclipse Distribution License is available at
Contributors: Contributors:
Roger Light - initial implementation and documentation. Roger Light - initial implementation and documentation.
*/ */
#ifndef _SEND_MOSQ_H_ #ifndef SEND_MOSQ_H
#define _SEND_MOSQ_H_ #define SEND_MOSQ_H
#include "mosquitto.h" #include "mosquitto.h"

@ -14,8 +14,8 @@ Contributors:
Roger Light - initial implementation and documentation. Roger Light - initial implementation and documentation.
*/ */
#ifndef _TIME_MOSQ_H_ #ifndef TIME_MOSQ_H
#define _TIME_MOSQ_H_ #define TIME_MOSQ_H
time_t mosquitto_time(void); time_t mosquitto_time(void);

@ -14,8 +14,8 @@ Contributors:
Roger Light - initial implementation and documentation. Roger Light - initial implementation and documentation.
*/ */
#ifndef _TLS_MOSQ_H_ #ifndef TLS_MOSQ_H
#define _TLS_MOSQ_H_ #define TLS_MOSQ_H
#ifdef WITH_TLS #ifdef WITH_TLS
# define SSL_DATA_PENDING(A) ((A)->ssl && SSL_pending((A)->ssl)) # define SSL_DATA_PENDING(A) ((A)->ssl && SSL_pending((A)->ssl))

@ -13,8 +13,8 @@ and the Eclipse Distribution License is available at
Contributors: Contributors:
Roger Light - initial implementation and documentation. Roger Light - initial implementation and documentation.
*/ */
#ifndef _UTIL_MOSQ_H_ #ifndef UTIL_MOSQ_H
#define _UTIL_MOSQ_H_ #define UTIL_MOSQ_H
#include <stdio.h> #include <stdio.h>

@ -14,8 +14,8 @@ Contributors:
Roger Light - initial implementation and documentation. Roger Light - initial implementation and documentation.
*/ */
#ifndef _WILL_MOSQ_H_ #ifndef WILL_MOSQ_H
#define _WILL_MOSQ_H_ #define WILL_MOSQ_H
#include "mosquitto.h" #include "mosquitto.h"
#include "mosquitto_internal.h" #include "mosquitto_internal.h"

Loading…
Cancel
Save