diff options
author | stash93 <glebik.stanislav@gmail.com> | 2015-02-24 09:05:06 +0300 |
---|---|---|
committer | stash93 <glebik.stanislav@gmail.com> | 2015-02-24 09:05:06 +0300 |
commit | 174a79c9939b2b6a9e4b3686613313eff28e5851 (patch) | |
tree | e9d8b71693020b8ff187c7f2ffc4fc060d152649 /port | |
parent | 6fdda8ac4d59d5edfac42994e614c7cfddd0def2 (diff) |
LevelDb include guard replaced with #pragma once
Summary: Replaced LevelDb include guards with #pragma once
Test Plan: make all check
Reviewers: igor
Reviewed By: igor
Subscribers: dhruba
Differential Revision: https://reviews.facebook.net/D33939
Diffstat (limited to 'port')
-rw-r--r-- | port/port.h | 4 | ||||
-rw-r--r-- | port/port_posix.h | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/port/port.h b/port/port.h index 153dc5b5b..bc4b6a19e 100644 --- a/port/port.h +++ b/port/port.h @@ -7,8 +7,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. -#ifndef STORAGE_LEVELDB_PORT_PORT_H_ -#define STORAGE_LEVELDB_PORT_PORT_H_ +#pragma once #include <string> @@ -19,4 +18,3 @@ #include "port/port_posix.h" #endif -#endif // STORAGE_LEVELDB_PORT_PORT_H_ diff --git a/port/port_posix.h b/port/port_posix.h index f730c483b..3e70d45e8 100644 --- a/port/port_posix.h +++ b/port/port_posix.h @@ -9,8 +9,7 @@ // // See port_example.h for documentation for the following types/functions. -#ifndef STORAGE_LEVELDB_PORT_PORT_POSIX_H_ -#define STORAGE_LEVELDB_PORT_PORT_POSIX_H_ +#pragma once #undef PLATFORM_IS_LITTLE_ENDIAN #if defined(OS_MACOSX) @@ -139,4 +138,3 @@ extern void InitOnce(OnceType* once, void (*initializer)()); } // namespace port } // namespace rocksdb -#endif // STORAGE_LEVELDB_PORT_PORT_POSIX_H_ |