From 2102bbe15f350fd7432c97648c11f15acfc44fbf Mon Sep 17 00:00:00 2001 From: dhinton Date: Wed, 14 May 2003 15:18:04 +0000 Subject: ChangeLogTag:Wed May 14 14:52:40 UTC 2003 Don Hinton --- ChangeLog | 7 +++++++ ace/README | 1 + ace/config-all.h | 8 ++++++++ 3 files changed, 16 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8b02cc06396..7ae601e0738 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Wed May 14 14:52:40 UTC 2003 Don Hinton + + * ace/config-all.h: + * ace/README: + Added new macro, ACE_USES_ALLOCA. If it is not defined in the + user's config.h, then turn off ACE_HAS_ALLOCA by default. + Tue May 13 09:39:13 2003 Douglas C. Schmidt * ace/OS.i (last_error): Fixed this method so that it assigns errno diff --git a/ace/README b/ace/README index 5a8007419be..27972e833b5 100644 --- a/ace/README +++ b/ace/README @@ -174,6 +174,7 @@ ACE_HAS_ALLOCA Compiler/platform supports alloca() ACE_HAS_ALLOCA_H Compiler/platform has +ACE_USES_ALLOCA Enables us of alloca in ACE. ACE_HAS_ALPHA_TIMER CPU is an Alpha, with the rpcc instruction to read the tick timer. Limited to 32 bits, so not recommended. diff --git a/ace/config-all.h b/ace/config-all.h index 3026090db47..5058fa8b693 100644 --- a/ace/config-all.h +++ b/ace/config-all.h @@ -22,6 +22,14 @@ # pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ +// Since use of alloca can be dangerous, turn it off unless the user has +// specifically turned it on by defining the ACE_USES_ALLOCA macro. +#if !defined (ACE_USES_ALLOCA) +# if defined (ACE_HAS_ALLOCA) +# undef ACE_HAS_ALLOCA +# endif /* ACE_HAS_ALLOCA */ +#endif /* !ACE_USES_ALLOCA */ + // ========================================================================= // Perfect Multicast filting refers to RFC 3376, where a socket is only // delivered dgrams for groups joined even if it didn't bind the group -- cgit v1.2.1