Use __BIONIC_DEPRECATED_PAGE_SIZE_MACRO.

The default compilation behavior is set to be the future direction,
and a flag is set for backwards compatibility.

Bug: 312546062
Test: build/boot
Change-Id: Ibf87cbb2ab5da8640bcf7eb5f8cd643bf500e2e5
diff --git a/cc/config/arm64_device.go b/cc/config/arm64_device.go
index 10342a3..5b41be3 100644
--- a/cc/config/arm64_device.go
+++ b/cc/config/arm64_device.go
@@ -103,8 +103,8 @@
 	exportedVars.ExportStringList("Arm64Cflags", arm64Cflags)
 	pctx.VariableFunc("Arm64Cflags", func(ctx android.PackageVarContext) string {
 		flags := arm64Cflags
-		if ctx.Config().NoBionicPageSizeMacro() {
-			flags = append(flags, "-D__BIONIC_NO_PAGE_SIZE_MACRO")
+		if !ctx.Config().NoBionicPageSizeMacro() {
+			flags = append(flags, "-D__BIONIC_DEPRECATED_PAGE_SIZE_MACRO")
 		}
 		return strings.Join(flags, " ")
 	})
diff --git a/cc/config/x86_64_device.go b/cc/config/x86_64_device.go
index ca2c2b7..dd26d02 100644
--- a/cc/config/x86_64_device.go
+++ b/cc/config/x86_64_device.go
@@ -112,8 +112,8 @@
 	exportedVars.ExportStringList("X86_64Cflags", x86_64Cflags)
 	pctx.VariableFunc("X86_64Cflags", func(ctx android.PackageVarContext) string {
 		flags := x86_64Cflags
-		if ctx.Config().NoBionicPageSizeMacro() {
-			flags = append(flags, "-D__BIONIC_NO_PAGE_SIZE_MACRO")
+		if !ctx.Config().NoBionicPageSizeMacro() {
+			flags = append(flags, "-D__BIONIC_DEPRECATED_PAGE_SIZE_MACRO")
 		}
 		return strings.Join(flags, " ")
 	})