summaryrefslogtreecommitdiffstats
path: root/Tests/Assembler/main.c
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-07-06 12:53:16 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-07-06 12:53:16 (GMT)
commitef7b647b3b11d6526439d3ececed254c237b3eac (patch)
tree88c584aad3e959b8e49a7109630e79da7548afc4 /Tests/Assembler/main.c
parent7627b96dd1c983cdf210ba65a49accdc0b743fc1 (diff)
downloadCMake-ef7b647b3b11d6526439d3ececed254c237b3eac.zip
CMake-ef7b647b3b11d6526439d3ececed254c237b3eac.tar.gz
CMake-ef7b647b3b11d6526439d3ececed254c237b3eac.tar.bz2
COMP: OPTIONAL was missing in ENABLE_LANGUAGE()
-the assembler file seems to work for Linux and FreeBSD -try to fix main() for HP-UX compiler Alex
Diffstat (limited to 'Tests/Assembler/main.c')
-rw-r--r--Tests/Assembler/main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/Tests/Assembler/main.c b/Tests/Assembler/main.c
index 3704ad0..6cbf24d 100644
--- a/Tests/Assembler/main.c
+++ b/Tests/Assembler/main.c
@@ -1,6 +1,12 @@
#include <stdio.h>
-int main(int argc, char** argv)
+#ifdef __CLASSIC_C__
+int main(){
+ int ac;
+ char*av[];
+#else
+int main(int ac, char*av[]){
+#endif
{
printf("hello assembler world, %d arguments given\n", argc);
return 0;