summaryrefslogtreecommitdiffstats
path: root/Modules/CheckVariableExists.c
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-04-15 12:22:19 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-04-15 12:22:19 (GMT)
commitfad91fb77038a243711677e904314ff0f283a68c (patch)
tree89337a6d28353128b27da9115ac1452d50907b91 /Modules/CheckVariableExists.c
parentc7a42a1b1f633d89d1d80d8b2703202b0827724e (diff)
downloadCMake-fad91fb77038a243711677e904314ff0f283a68c.zip
CMake-fad91fb77038a243711677e904314ff0f283a68c.tar.gz
CMake-fad91fb77038a243711677e904314ff0f283a68c.tar.bz2
ENH: fix tests for non-ansi c on hp and remove warnings for ansi c
Diffstat (limited to 'Modules/CheckVariableExists.c')
-rw-r--r--Modules/CheckVariableExists.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/Modules/CheckVariableExists.c b/Modules/CheckVariableExists.c
index e4d1e8d..419c1b0 100644
--- a/Modules/CheckVariableExists.c
+++ b/Modules/CheckVariableExists.c
@@ -2,10 +2,16 @@
extern int CHECK_VARIABLE_EXISTS;
-int main()
-{
+#ifdef __CLASSIC_C__
+int main(){
+ int ac;
+ char*av[];
+#else
+int main(int ac, char*av[]){
+#endif
int* p;
p = &CHECK_VARIABLE_EXISTS;
+ if(ac > 1000){return *av[0];}
return 0;
}