Skip to content

Commit

Permalink
Don't use reserved names in header guards.
Browse files Browse the repository at this point in the history
Closes #3.
  • Loading branch information
ralight committed Mar 13, 2016
1 parent 6c8c649 commit 556c629
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 32 deletions.
4 changes: 2 additions & 2 deletions client/client_shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ and the Eclipse Distribution License is available at
Roger Light - initial implementation and documentation.
*/

#ifndef _CLIENT_CONFIG_H
#define _CLIENT_CONFIG_H
#ifndef CLIENT_CONFIG_H
#define CLIENT_CONFIG_H

#include <stdio.h>

Expand Down
4 changes: 2 additions & 2 deletions lib/dummypthread.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _DUMMYPTHREAD_H_
#define _DUMMYPTHREAD_H_
#ifndef DUMMYPTHREAD_H
#define DUMMYPTHREAD_H

#define pthread_create(A, B, C, D)
#define pthread_join(A, B)
Expand Down
4 changes: 2 additions & 2 deletions lib/logging_mosq.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ and the Eclipse Distribution License is available at
Contributors:
Roger Light - initial implementation and documentation.
*/
#ifndef _LOGGING_MOSQ_H_
#define _LOGGING_MOSQ_H_
#ifndef LOGGING_MOSQ_H
#define LOGGING_MOSQ_H

#include "mosquitto.h"

Expand Down
4 changes: 2 additions & 2 deletions lib/memory_mosq.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ and the Eclipse Distribution License is available at
Roger Light - initial implementation and documentation.
*/

#ifndef _MEMORY_MOSQ_H_
#define _MEMORY_MOSQ_H_
#ifndef MEMORY_MOSQ_H
#define MEMORY_MOSQ_H

#include <stdio.h>
#include <sys/types.h>
Expand Down
4 changes: 2 additions & 2 deletions lib/messages_mosq.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ and the Eclipse Distribution License is available at
Contributors:
Roger Light - initial implementation and documentation.
*/
#ifndef _MESSAGES_MOSQ_H_
#define _MESSAGES_MOSQ_H_
#ifndef MESSAGES_MOSQ_H
#define MESSAGES_MOSQ_H

#include "mosquitto_internal.h"
#include "mosquitto.h"
Expand Down
4 changes: 2 additions & 2 deletions lib/mosquitto.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ and the Eclipse Distribution License is available at
Roger Light - initial implementation and documentation.
*/

#ifndef _MOSQUITTO_H_
#define _MOSQUITTO_H_
#ifndef MOSQUITTO_H
#define MOSQUITTO_H

#ifdef __cplusplus
extern "C" {
Expand Down
4 changes: 2 additions & 2 deletions lib/mosquitto_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ and the Eclipse Distribution License is available at
Roger Light - initial implementation and documentation.
*/

#ifndef _MOSQUITTO_INTERNAL_H_
#define _MOSQUITTO_INTERNAL_H_
#ifndef MOSQUITTO_INTERNAL_H
#define MOSQUITTO_INTERNAL_H

#include "config.h"

Expand Down
4 changes: 2 additions & 2 deletions lib/mqtt3_protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ and the Eclipse Distribution License is available at
Roger Light - initial implementation and documentation.
*/

#ifndef _MQTT3_PROTOCOL_H_
#define _MQTT3_PROTOCOL_H_
#ifndef MQTT3_PROTOCOL_H
#define MQTT3_PROTOCOL_H

/* For version 3 of the MQTT protocol */

Expand Down
4 changes: 2 additions & 2 deletions lib/net_mosq.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ and the Eclipse Distribution License is available at
Contributors:
Roger Light - initial implementation and documentation.
*/
#ifndef _NET_MOSQ_H_
#define _NET_MOSQ_H_
#ifndef NET_MOSQ_H
#define NET_MOSQ_H

#ifndef WIN32
#include <unistd.h>
Expand Down
4 changes: 2 additions & 2 deletions lib/packet_mosq.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ and the Eclipse Distribution License is available at
Contributors:
Roger Light - initial implementation and documentation.
*/
#ifndef _PACKET_MOSQ_H_
#define _PACKET_MOSQ_H_
#ifndef PACKET_MOSQ_H
#define PACKET_MOSQ_H

#include "mosquitto_internal.h"
#include "mosquitto.h"
Expand Down
4 changes: 2 additions & 2 deletions lib/read_handle.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ and the Eclipse Distribution License is available at
Contributors:
Roger Light - initial implementation and documentation.
*/
#ifndef _READ_HANDLE_H_
#define _READ_HANDLE_H_
#ifndef READ_HANDLE_H
#define READ_HANDLE_H

#include "mosquitto.h"
struct mosquitto_db;
Expand Down
4 changes: 2 additions & 2 deletions lib/send_mosq.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ and the Eclipse Distribution License is available at
Contributors:
Roger Light - initial implementation and documentation.
*/
#ifndef _SEND_MOSQ_H_
#define _SEND_MOSQ_H_
#ifndef SEND_MOSQ_H
#define SEND_MOSQ_H

#include "mosquitto.h"

Expand Down
4 changes: 2 additions & 2 deletions lib/time_mosq.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ and the Eclipse Distribution License is available at
Roger Light - initial implementation and documentation.
*/

#ifndef _TIME_MOSQ_H_
#define _TIME_MOSQ_H_
#ifndef TIME_MOSQ_H
#define TIME_MOSQ_H

time_t mosquitto_time(void);

Expand Down
4 changes: 2 additions & 2 deletions lib/tls_mosq.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ and the Eclipse Distribution License is available at
Roger Light - initial implementation and documentation.
*/

#ifndef _TLS_MOSQ_H_
#define _TLS_MOSQ_H_
#ifndef TLS_MOSQ_H
#define TLS_MOSQ_H

#ifdef WITH_TLS
# define SSL_DATA_PENDING(A) ((A)->ssl && SSL_pending((A)->ssl))
Expand Down
4 changes: 2 additions & 2 deletions lib/util_mosq.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ and the Eclipse Distribution License is available at
Contributors:
Roger Light - initial implementation and documentation.
*/
#ifndef _UTIL_MOSQ_H_
#define _UTIL_MOSQ_H_
#ifndef UTIL_MOSQ_H
#define UTIL_MOSQ_H

#include <stdio.h>

Expand Down
4 changes: 2 additions & 2 deletions lib/will_mosq.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ and the Eclipse Distribution License is available at
Roger Light - initial implementation and documentation.
*/

#ifndef _WILL_MOSQ_H_
#define _WILL_MOSQ_H_
#ifndef WILL_MOSQ_H
#define WILL_MOSQ_H

#include "mosquitto.h"
#include "mosquitto_internal.h"
Expand Down

0 comments on commit 556c629

Please sign in to comment.