testsuite: fix ifdef lint errors under tests/rts/linker
authorArtem Pyanykh <artem.pyanykh@gmail.com>
Tue, 16 Apr 2019 16:30:16 +0000 (19:30 +0300)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Sun, 21 Apr 2019 13:19:29 +0000 (09:19 -0400)
testsuite/tests/rts/linker/T11223/power.c
testsuite/tests/rts/linker/T11223/power_slow.c
testsuite/tests/rts/linker/runner.c

index f94c7e7..507b4df 100644 (file)
@@ -1,6 +1,6 @@
 #include <stdio.h>
 
-#ifdef WEAK
+#if defined(WEAK)
 int power2(int x) __attribute__((weak));
 #endif
 int power2(int x)
index a1ae8d1..8e01394 100644 (file)
@@ -1,5 +1,5 @@
 #include <stdio.h>
-#ifdef WEAK
+#if defined(WEAK)
 int power2(int x) __attribute__((weak));
 #endif
 int power2(int x)
index 7c34ac2..2238a1a 100644 (file)
@@ -24,7 +24,7 @@ int main(int argc, char *argv[])
     }
     objpath = argv[1];
 
-#ifdef darwin_HOST_OS
+#if defined(darwin_HOST_OS)
     char symname[MAX_SYMNAME + 1];
     symname[0] = '_';
     strncpy(&symname[1], argv[2], MAX_SYMNAME);