Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5aaa81d authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "libbase: switch to #pragma once."

parents b4a2f579 4d8bbc6f
Loading
Loading
Loading
Loading
+1 −4
Original line number Original line Diff line number Diff line
@@ -14,8 +14,7 @@
 * limitations under the License.
 * limitations under the License.
 */
 */


#ifndef ANDROID_BASE_CHRONO_UTILS_H
#pragma once
#define ANDROID_BASE_CHRONO_UTILS_H


#include <chrono>
#include <chrono>
#include <sstream>
#include <sstream>
@@ -52,5 +51,3 @@ std::ostream& operator<<(std::ostream& os, const Timer& t);


}  // namespace base
}  // namespace base
}  // namespace android
}  // namespace android

#endif  // ANDROID_BASE_CHRONO_UTILS_H
+1 −4
Original line number Original line Diff line number Diff line
@@ -14,8 +14,7 @@
 * limitations under the License.
 * limitations under the License.
 */
 */


#ifndef ANDROID_BASE_ENDIAN_H
#pragma once
#define ANDROID_BASE_ENDIAN_H


/* A cross-platform equivalent of bionic's <sys/endian.h>. */
/* A cross-platform equivalent of bionic's <sys/endian.h>. */


@@ -86,5 +85,3 @@
#define le64toh(x) (x)
#define le64toh(x) (x)


#endif
#endif

#endif  // ANDROID_BASE_ENDIAN_H
+1 −4
Original line number Original line Diff line number Diff line
@@ -27,8 +27,7 @@
// special handling to get the error string. Refer to Microsoft documentation
// special handling to get the error string. Refer to Microsoft documentation
// to determine which error code to check for each function.
// to determine which error code to check for each function.


#ifndef ANDROID_BASE_ERRORS_H
#pragma once
#define ANDROID_BASE_ERRORS_H


#include <string>
#include <string>


@@ -42,5 +41,3 @@ std::string SystemErrorCodeToString(int error_code);


}  // namespace base
}  // namespace base
}  // namespace android
}  // namespace android

#endif  // ANDROID_BASE_ERRORS_H
+1 −4
Original line number Original line Diff line number Diff line
@@ -14,8 +14,7 @@
 * limitations under the License.
 * limitations under the License.
 */
 */


#ifndef ANDROID_BASE_FILE_H
#pragma once
#define ANDROID_BASE_FILE_H


#include <sys/stat.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/types.h>
@@ -78,5 +77,3 @@ std::string Dirname(const std::string& path);


}  // namespace base
}  // namespace base
}  // namespace android
}  // namespace android

#endif // ANDROID_BASE_FILE_H
+1 −4
Original line number Original line Diff line number Diff line
@@ -14,8 +14,7 @@
 * limitations under the License.
 * limitations under the License.
 */
 */


#ifndef ANDROID_BASE_LOGGING_H
#pragma once
#define ANDROID_BASE_LOGGING_H


//
//
// Google-style C++ logging.
// Google-style C++ logging.
@@ -506,5 +505,3 @@ inline std::ostream& operator<<(std::ostream& stream, const std::string* string_
#undef OSTREAM_STRING_POINTER_USAGE_WARNING
#undef OSTREAM_STRING_POINTER_USAGE_WARNING


}  // namespace std
}  // namespace std

#endif  // ANDROID_BASE_LOGGING_H
Loading