]> granicus.if.org Git - clang/commitdiff
test/Sema/return.c: Cygwin does not have _longjmp().
authorNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 19 Oct 2010 01:17:08 +0000 (01:17 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 19 Oct 2010 01:17:08 +0000 (01:17 +0000)
Although Cygwin-1.7 has _longjmp(), it would not be essential for this
to distinguish Cygwin's version with <cygwin/version.h>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116783 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/return.c

index 597b50214e439f55a0407862ae3b18c9b36db2b3..0c2c72ee537fe42a4ccb5bd105aadf9da33e59ac 100644 (file)
@@ -203,7 +203,7 @@ int test30() {
   if (j)
     longjmp(test30_j, 1);
   else
-#if defined(_WIN32) || defined(_WIN64)
+#if defined(_WIN32) || defined(_WIN64) || defined(__CYGWIN__)
     longjmp(test30_j, 2);
 #else
     _longjmp(test30_j, 1);