diff options
Diffstat (limited to 'libc/private/WriteProtected.h')
-rw-r--r-- | libc/private/WriteProtected.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libc/private/WriteProtected.h b/libc/private/WriteProtected.h index 7a6b09800..69a68229b 100644 --- a/libc/private/WriteProtected.h +++ b/libc/private/WriteProtected.h @@ -14,8 +14,7 @@ * limitations under the License. */ -#ifndef _PRIVATE_WRITEPROTECTED_H -#define _PRIVATE_WRITEPROTECTED_H +#pragma once #include <errno.h> #include <string.h> @@ -33,7 +32,7 @@ union WriteProtectedContents { char padding[PAGE_SIZE]; WriteProtectedContents() = default; - DISALLOW_COPY_AND_ASSIGN(WriteProtectedContents); + BIONIC_DISALLOW_COPY_AND_ASSIGN(WriteProtectedContents); } __attribute__((aligned(PAGE_SIZE))); // Write protected wrapper class that aligns its contents to a page boundary, @@ -49,7 +48,7 @@ class WriteProtected { public: WriteProtected() = default; - DISALLOW_COPY_AND_ASSIGN(WriteProtected); + BIONIC_DISALLOW_COPY_AND_ASSIGN(WriteProtected); void initialize() { // Not strictly necessary, but this will hopefully segfault if we initialize @@ -82,5 +81,3 @@ class WriteProtected { } } }; - -#endif |