Skip to content

Commit

Permalink
Bug ceph#98: Unique names for include guards
Browse files Browse the repository at this point in the history
A couple of preprocessor symbols for include guards tampered with the reserved namespace.

Signed-off-by: Markus Elfring <[email protected]>
Signed-off-by: Sage Weil <[email protected]>
  • Loading branch information
elfring authored and liewegas committed Jun 17, 2010
1 parent 6de2dde commit f4b9d9d
Show file tree
Hide file tree
Showing 310 changed files with 620 additions and 620 deletions.
4 changes: 2 additions & 2 deletions src/active/common.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef COMMON_H
#define COMMON_H
#ifndef CEPH_COMMON_H
#define CEPH_COMMON_H


#include <sys/stat.h>
Expand Down
4 changes: 2 additions & 2 deletions src/auth/Auth.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*
*/

#ifndef __AUTHTYPES_H
#define __AUTHTYPES_H
#ifndef CEPH_AUTHTYPES_H
#define CEPH_AUTHTYPES_H

#include "Crypto.h"
#include "msg/msg_types.h"
Expand Down
4 changes: 2 additions & 2 deletions src/auth/AuthAuthorizeHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*
*/

#ifndef __AUTHAUTHORIZEHANDLER_H
#define __AUTHAUTHORIZEHANDLER_H
#ifndef CEPH_AUTHAUTHORIZEHANDLER_H
#define CEPH_AUTHAUTHORIZEHANDLER_H

#include "include/types.h"
#include "config.h"
Expand Down
4 changes: 2 additions & 2 deletions src/auth/AuthClientHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*
*/

#ifndef __AUTHCLIENTHANDLER_H
#define __AUTHCLIENTHANDLER_H
#ifndef CEPH_AUTHCLIENTHANDLER_H
#define CEPH_AUTHCLIENTHANDLER_H


#include "auth/Auth.h"
Expand Down
4 changes: 2 additions & 2 deletions src/auth/AuthServiceHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*
*/

#ifndef __AUTHSERVICEHANDLER_H
#define __AUTHSERVICEHANDLER_H
#ifndef CEPH_AUTHSERVICEHANDLER_H
#define CEPH_AUTHSERVICEHANDLER_H

#include "include/types.h"
#include "config.h"
Expand Down
4 changes: 2 additions & 2 deletions src/auth/AuthSupported.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*
*/

#ifndef __AUTHSUPPORTED_H
#define __AUTHSUPPORTED_H
#ifndef CEPH_AUTHSUPPORTED_H
#define CEPH_AUTHSUPPORTED_H

#include <map>

Expand Down
4 changes: 2 additions & 2 deletions src/auth/Crypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
*
*/

#ifndef __CRYPTO_H
#define __CRYPTO_H
#ifndef CEPH_CRYPTO_H
#define CEPH_CRYPTO_H

#include "include/types.h"

Expand Down
4 changes: 2 additions & 2 deletions src/auth/ExportControl.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __EXPORTCONTROL_H
#define __EXPORTCONTROL_H
#ifndef CEPH_EXPORTCONTROL_H
#define CEPH_EXPORTCONTROL_H

#include <map>
#include "config.h"
Expand Down
4 changes: 2 additions & 2 deletions src/auth/KeyRing.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*
*/

#ifndef __KEYRING_H
#define __KEYRING_H
#ifndef CEPH_KEYRING_H
#define CEPH_KEYRING_H

#include "config.h"

Expand Down
4 changes: 2 additions & 2 deletions src/auth/RotatingKeyRing.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*
*/

#ifndef __ROTATINGKEYRING_H
#define __ROTATINGKEYRING_H
#ifndef CEPH_ROTATINGKEYRING_H
#define CEPH_ROTATINGKEYRING_H

#include "config.h"

Expand Down
4 changes: 2 additions & 2 deletions src/auth/cephx/CephxAuthorizeHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*
*/

#ifndef __CEPHXAUTHORIZEHANDLER_H
#define __CEPHXAUTHORIZEHANDLER_H
#ifndef CEPH_CEPHXAUTHORIZEHANDLER_H
#define CEPH_CEPHXAUTHORIZEHANDLER_H

#include "../AuthAuthorizeHandler.h"

Expand Down
4 changes: 2 additions & 2 deletions src/auth/cephx/CephxClientHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*
*/

#ifndef __CEPHXCLIENTHANDLER_H
#define __CEPHXCLIENTHANDLER_H
#ifndef CEPH_CEPHXCLIENTHANDLER_H
#define CEPH_CEPHXCLIENTHANDLER_H

#include "../AuthClientHandler.h"
#include "CephxProtocol.h"
Expand Down
4 changes: 2 additions & 2 deletions src/auth/cephx/CephxKeyServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*
*/

#ifndef __KEYSSERVER_H
#define __KEYSSERVER_H
#ifndef CEPH_KEYSSERVER_H
#define CEPH_KEYSSERVER_H

#include "config.h"

Expand Down
4 changes: 2 additions & 2 deletions src/auth/cephx/CephxProtocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*
*/

#ifndef __CEPHXPROTOCOL_H
#define __CEPHXPROTOCOL_H
#ifndef CEPH_CEPHXPROTOCOL_H
#define CEPH_CEPHXPROTOCOL_H

/*
Ceph X protocol
Expand Down
4 changes: 2 additions & 2 deletions src/auth/cephx/CephxServiceHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*
*/

#ifndef __CEPHXSERVICEHANDLER_H
#define __CEPHXSERVICEHANDLER_H
#ifndef CEPH_CEPHXSERVICEHANDLER_H
#define CEPH_CEPHXSERVICEHANDLER_H

#include "../AuthServiceHandler.h"
#include "../Auth.h"
Expand Down
4 changes: 2 additions & 2 deletions src/auth/none/AuthNoneAuthorizeHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*
*/

#ifndef __AUTHNONEAUTHORIZEHANDLER_H
#define __AUTHNONEAUTHORIZEHANDLER_H
#ifndef CEPH_AUTHNONEAUTHORIZEHANDLER_H
#define CEPH_AUTHNONEAUTHORIZEHANDLER_H

#include "../AuthAuthorizeHandler.h"

Expand Down
4 changes: 2 additions & 2 deletions src/auth/none/AuthNoneClientHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*
*/

#ifndef __AUTHNONECLIENTHANDLER_H
#define __AUTHNONECLIENTHANDLER_H
#ifndef CEPH_AUTHNONECLIENTHANDLER_H
#define CEPH_AUTHNONECLIENTHANDLER_H

#include "../AuthClientHandler.h"
#include "AuthNoneProtocol.h"
Expand Down
4 changes: 2 additions & 2 deletions src/auth/none/AuthNoneProtocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*
*/

#ifndef __AUTHNONEPROTOCOL_H
#define __AUTHNONEPROTOCOL_H
#ifndef CEPH_AUTHNONEPROTOCOL_H
#define CEPH_AUTHNONEPROTOCOL_H

#include "../Auth.h"

Expand Down
4 changes: 2 additions & 2 deletions src/auth/none/AuthNoneServiceHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*
*/

#ifndef __AUTHNONESERVICEHANDLER_H
#define __AUTHNONESERVICEHANDLER_H
#ifndef CEPH_AUTHNONESERVICEHANDLER_H
#define CEPH_AUTHNONESERVICEHANDLER_H

#include "../AuthServiceHandler.h"
#include "../Auth.h"
Expand Down
4 changes: 2 additions & 2 deletions src/client/Client.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
*/


#ifndef __CLIENT_H
#define __CLIENT_H
#ifndef CEPH_CLIENT_H
#define CEPH_CLIENT_H

enum {
l_c_first = 20000,
Expand Down
4 changes: 2 additions & 2 deletions src/client/SyntheticClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
*/


#ifndef __SYNTHETICCLIENT_H
#define __SYNTHETICCLIENT_H
#ifndef CEPH_SYNTHETICCLIENT_H
#define CEPH_SYNTHETICCLIENT_H

#include <pthread.h>

Expand Down
4 changes: 2 additions & 2 deletions src/client/Trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
*/


#ifndef __CLIENT_TRACE_H
#define __CLIENT_TRACE_H
#ifndef CEPH_CLIENT_TRACE_H
#define CEPH_CLIENT_TRACE_H

#include <stdlib.h>

Expand Down
4 changes: 2 additions & 2 deletions src/client/hypertable/CephBroker.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*
*/

#ifndef HYPERTABLE_CEPHBROKER_H
#define HYPERTABLE_CEPHBROKER_H
#ifndef CEPH_HYPERTABLE_BROKER_H
#define CEPH_HYPERTABLE_BROKER_H

extern "C" {
#include <unistd.h>
Expand Down
4 changes: 2 additions & 2 deletions src/client/ioctl.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef FS_CEPH_IOCTL_H
#define FS_CEPH_IOCTL_H
#ifndef CEPH_FS_IOCTL_H
#define CEPH_FS_IOCTL_H

#include <linux/ioctl.h>
#include <linux/types.h>
Expand Down
4 changes: 2 additions & 2 deletions src/client/libceph.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __LIBCEPH_H
#define __LIBCEPH_H
#ifndef CEPH_LIB_H
#define CEPH_LIB_H
#include <netinet/in.h>
#include <sys/statvfs.h>
#include <utime.h>
Expand Down
4 changes: 2 additions & 2 deletions src/common/BackTrace.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _CEPH_BACKTRACE
#define _CEPH_BACKTRACE
#ifndef CEPH_BACKTRACE_H
#define CEPH_BACKTRACE_H

#include <execinfo.h>
#include <stdlib.h>
Expand Down
4 changes: 2 additions & 2 deletions src/common/ClassHandler.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __CLASSHANDLER_H
#define __CLASSHANDLER_H
#ifndef CEPH_CLASSHANDLER_H
#define CEPH_CLASSHANDLER_H

#include "include/types.h"
#include "include/ClassLibrary.h"
Expand Down
4 changes: 2 additions & 2 deletions src/common/ClassVersion.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __CLASSVERSION_H
#define __CLASSVERSION_H
#ifndef CEPH_CLASSVERSION_H
#define CEPH_CLASSVERSION_H

#include "include/types.h"

Expand Down
4 changes: 2 additions & 2 deletions src/common/Clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@



#ifndef __CLOCK_H
#define __CLOCK_H
#ifndef CEPH_CLOCK_H
#define CEPH_CLOCK_H

#include <iostream>
#include <iomanip>
Expand Down
4 changes: 2 additions & 2 deletions src/common/Cond.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
*/


#ifndef __COND_H
#define __COND_H
#ifndef CEPH_COND_H
#define CEPH_COND_H

#include <time.h>

Expand Down
4 changes: 2 additions & 2 deletions src/common/ConfUtils.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __CONFUTILS_H
#define __CONFUTILS_H
#ifndef CEPH_CONFUTILS_H
#define CEPH_CONFUTILS_H


#include <string.h>
Expand Down
4 changes: 2 additions & 2 deletions src/common/DecayCounter.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*
*/

#ifndef __DECAYCOUNTER_H
#define __DECAYCOUNTER_H
#ifndef CEPH_DECAYCOUNTER_H
#define CEPH_DECAYCOUNTER_H

#include <math.h>
#include "Clock.h"
Expand Down
4 changes: 2 additions & 2 deletions src/common/Finisher.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*
*/

#ifndef __CEPH_FINISHER_H
#define __CEPH_FINISHER_H
#ifndef CEPH_FINISHER_H
#define CEPH_FINISHER_H

#include "common/Mutex.h"
#include "common/Cond.h"
Expand Down
4 changes: 2 additions & 2 deletions src/common/LogClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*
*/

#ifndef __LOGCLIENT_H
#define __LOGCLIENT_H
#ifndef CEPH_LOGCLIENT_H
#define CEPH_LOGCLIENT_H

#include "msg/Dispatcher.h"

Expand Down
4 changes: 2 additions & 2 deletions src/common/LogType.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
*/


#ifndef __LOGTYPE_H
#define __LOGTYPE_H
#ifndef CEPH_LOGTYPE_H
#define CEPH_LOGTYPE_H

#include "include/types.h"

Expand Down
4 changes: 2 additions & 2 deletions src/common/Logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
*/


#ifndef __LOGGER_H
#define __LOGGER_H
#ifndef CEPH_LOGGER_H
#define CEPH_LOGGER_H

#include "include/types.h"
#include "Clock.h"
Expand Down
4 changes: 2 additions & 2 deletions src/common/MemoryModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*
*/

#ifndef __CEPH_MEMORYMODEL_H
#define __CEPH_MEMORYMODEL_H
#ifndef CEPH_MEMORYMODEL_H
#define CEPH_MEMORYMODEL_H

class MemoryModel {
public:
Expand Down
4 changes: 2 additions & 2 deletions src/common/Mutex.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*
*/

#ifndef __MUTEX_H
#define __MUTEX_H
#ifndef CEPH_MUTEX_H
#define CEPH_MUTEX_H

#include <pthread.h>
#include "include/assert.h"
Expand Down
Loading

0 comments on commit f4b9d9d

Please sign in to comment.