]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
fix: unterminated #elif in detect-arch.c
authorIlya Kurdyukov <59548320+ilyakurdyukov@users.noreply.github.com>
Wed, 9 Jun 2021 12:27:24 +0000 (19:27 +0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Fri, 11 Jun 2021 11:11:20 +0000 (13:11 +0200)
```
$ gcc detect-arch.c
detect-arch.c:8:6: error: #error archfound x86_64
     #error archfound x86_64
      ^~~~~
detect-arch.c:7:0: error: unterminated #elif
 #if defined(__x86_64__) || defined(_M_X64)
```

cmake/detect-arch.c

index c8bad4beda35b8ae0e7f26d50400f5f0cc495e26..8cae4eb66850b24c22d2facb102f503bda0e10b4 100644 (file)
@@ -99,6 +99,7 @@
         #error archfound riscv64
     #elif __riscv_xlen == 32
         #error archfound riscv32
+    #endif
 
 // return 'unrecognized' if we do not know what architecture this is
 #else