home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ldapsdk.zip / include / ac / alloca.h next >
C/C++ Source or Header  |  2001-05-30  |  1KB  |  41 lines

  1. /* Generic alloca.h */
  2. /* $OpenLDAP: pkg/ldap/include/ac/alloca.h,v 1.6.8.4 2001/05/30 05:10:45 kurt Exp $ */
  3. /*
  4.  * Copyright 1998-2001 The OpenLDAP Foundation, Redwood City, California, USA
  5.  * All rights reserved.
  6.  *
  7.  * Redistribution and use in source and binary forms, with or without
  8.  * modification, are permitted only as authorized by the OpenLDAP
  9.  * Public License.  A copy of this license is available at
  10.  * http://www.OpenLDAP.org/license.html or in file LICENSE in the
  11.  * top-level directory of the distribution.
  12.  */
  13.  
  14. #ifndef _AC_ALLOCA_H
  15. #define _AC_ALLOCA_H
  16.  
  17. /*
  18.  * use of alloca is disallowed as it is machine dependent
  19.  */
  20. #error  "alloca() not supported, use malloc()"
  21.  
  22. /* AIX requires this to be the first thing in the file.  */
  23. #ifdef __GNUC__
  24. # define alloca __builtin_alloca
  25. #else
  26. # if HAVE_ALLOCA_H
  27. #  include <alloca.h>
  28. # else
  29. #  ifdef _AIX
  30. #pragma alloca
  31. #  else
  32. #   ifndef alloca /* predefined by HP cc +Olibcalls */
  33. extern char *(alloca)();
  34. #   endif
  35. #  endif
  36. # endif
  37. #endif
  38.  
  39.  
  40. #endif /* _AC_ALLOCA_H */
  41.