summaryrefslogtreecommitdiff
path: root/winsup/w32api/include/excpt.h
diff options
context:
space:
mode:
authorChristopher Faylor <cgf@redhat.com>2000-02-17 19:38:31 +0000
committerChristopher Faylor <cgf@redhat.com>2000-02-17 19:38:31 +0000
commitbd592806f45307757c24ec3f75bdefe13abfd51f (patch)
tree35cb30ab8b3f38691a715fe691879afdfbc3023f /winsup/w32api/include/excpt.h
parenta44117a86b0b18d788522dac573da385a11b2f3b (diff)
downloadgdb-winsup-2000-02-17.tar.gz
import winsup-2000-02-17 snapshotwinsup-2000-02-17
Diffstat (limited to 'winsup/w32api/include/excpt.h')
-rw-r--r--winsup/w32api/include/excpt.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/winsup/w32api/include/excpt.h b/winsup/w32api/include/excpt.h
new file mode 100644
index 00000000000..39621a8f605
--- /dev/null
+++ b/winsup/w32api/include/excpt.h
@@ -0,0 +1,17 @@
+#ifndef _EXCPT_H
+#define _EXCPT_H
+
+/* FIXME: This will make some code compile. The programs will most
+ likely crash when an exception is raised, but at least they will
+ compile. */
+#ifdef __GNUC__
+#define __try
+#define __except(x) if (0) /* don't execute handler */
+#define __finally
+
+#define _try __try
+#define _except __except
+#define _finally __finally
+#endif
+
+#endif