summaryrefslogtreecommitdiff
path: root/sci-libs/plplot/files/plplot-5.15.0_p6-configure-c99.patch
blob: 60bb7aaf45015b2ed0b2abb9993e428004bbae2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
https://bugs.gentoo.org/879761
https://sourceforge.net/p/plplot/patches/37/

Avoid implicitly declaring exit.  Future compilers will not support
implicit function declarations, so this cmake probe will always fail.

--- a/cmake/modules/TestForHighBitCharacters.c
+++ b/cmake/modules/TestForHighBitCharacters.c
@@ -17,6 +17,6 @@ int
    int i;
    for (i = 0; i < 256; i++)
      if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i))
-       exit(1);
-   exit (0);
+       return 1;
+   return 0;
 }