aboutsummaryrefslogtreecommitdiff
path: root/libjava/java
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2000-09-14 07:51:56 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2000-09-14 07:51:56 +0000
commite7e18a21d244061497ee88dea27d4695da2f28f3 (patch)
treeb6d90ae85faa8c655f2554e676c8df655d8e517e /libjava/java
parent597c1b349fcbda26ba75a4e3a4fb136c26887d7a (diff)
downloadgcc-e7e18a21d244061497ee88dea27d4695da2f28f3.zip
gcc-e7e18a21d244061497ee88dea27d4695da2f28f3.tar.gz
gcc-e7e18a21d244061497ee88dea27d4695da2f28f3.tar.bz2
defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
* defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H. * java/lang/natDouble.cc: Likewise. * java/lang/reflect/natMethod.cc: Likewise. * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word. From-SVN: r36404
Diffstat (limited to 'libjava/java')
-rw-r--r--libjava/java/lang/natDouble.cc2
-rw-r--r--libjava/java/lang/reflect/natMethod.cc2
2 files changed, 4 insertions, 0 deletions
diff --git a/libjava/java/lang/natDouble.cc b/libjava/java/lang/natDouble.cc
index 9e78655..dc799b2 100644
--- a/libjava/java/lang/natDouble.cc
+++ b/libjava/java/lang/natDouble.cc
@@ -10,7 +10,9 @@ details. */
#include <config.h>
+#if HAVE_ALLOCA_H
#include <alloca.h>
+#endif
#include <stdlib.h>
diff --git a/libjava/java/lang/reflect/natMethod.cc b/libjava/java/lang/reflect/natMethod.cc
index 8972852..0f829de 100644
--- a/libjava/java/lang/reflect/natMethod.cc
+++ b/libjava/java/lang/reflect/natMethod.cc
@@ -10,7 +10,9 @@ details. */
#include <config.h>
+#if HAVE_ALLOCA_H
#include <alloca.h>
+#endif
#include <gcj/cni.h>
#include <jvm.h>