changeset 9753:f8cfdd8ba484

Add VMS support.
author John E. Malmberg <wb8tyw@qsl.net>
date Mon, 03 Mar 2008 12:49:54 +0100
parents 40496da79331
children 3b9a44237608
files ChangeLog lib/alloca.in.h
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
+            Bruno Haible  <bruno@clisp.org>
+
+	Add VMS support.
+	* lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
+
 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
 
 	Update VMS specifics.
--- a/lib/alloca.in.h
+++ b/lib/alloca.in.h
@@ -1,6 +1,6 @@
 /* Memory allocation on the stack.
 
-   Copyright (C) 1995, 1999, 2001-2004, 2006-2007 Free Software
+   Copyright (C) 1995, 1999, 2001-2004, 2006-2008 Free Software
    Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify it
@@ -44,6 +44,9 @@
 #  define alloca _alloca
 # else
 #  include <stddef.h>
+#  if defined __DECC && defined __VMS
+#   define alloca __ALLOCA
+#  endif
 #  ifdef  __cplusplus
 extern "C"
 #  endif