1 /* sane - Scanner Access Now Easy. 2 3 This file is part of the SANE package. 4 5 SANE is free software; you can redistribute it and/or modify it under 6 the terms of the GNU General Public License as published by the Free 7 Software Foundation; either version 2 of the License, or (at your 8 option) any later version. 9 10 SANE is distributed in the hope that it will be useful, but WITHOUT 11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 13 for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with sane; see the file COPYING. 17 If not, see <https://www.gnu.org/licenses/>. 18 19 As a special exception, the authors of SANE give permission for 20 additional uses of the libraries contained in this release of SANE. 21 22 The exception is that, if you link a SANE library with other files 23 to produce an executable, this does not by itself cause the 24 resulting executable to be covered by the GNU General Public 25 License. Your use of that executable is in no way restricted on 26 account of linking the SANE library code into it. 27 28 This exception does not, however, invalidate any other reasons why 29 the executable file might be covered by the GNU General Public 30 License. 31 32 If you submit changes to SANE to the maintainers to be included in 33 a subsequent release, you agree by submitting the changes that 34 those changes may be distributed with this exception intact. 35 36 If you write modifications of your own for SANE, it is your choice 37 whether to permit this exception to apply to your modifications. 38 If you do not wish that, delete this exception notice. 39 40 Choose suitable implementation of alloca. 41 42 */ 43 44 #ifndef lalloca_h 45 #define lalloca_h 46 47 /* The idea how to do this is from the autoconf documentation */ 48 49 /* AIX requires this to be the first thing in the file. */ 50 #if defined(__GNUC__) 51 # define alloca __builtin_alloca 52 #else 53 # if HAVE_ALLOCA_H 54 # include <alloca.h> 55 # else 56 # ifdef _AIX 57 #pragma alloca 58 # else 59 # ifndef alloca /* predefined by HP cc +Olibcalls */ 60 /* Remap to internal version name as not to conflict with 61 * other libraries that also add as util to their libraries. 62 */ 63 #define alloca sanei_alloca 64 # if __STDC__ 65 void *alloca (); 66 # else 67 char *alloca (); 68 # endif 69 # endif 70 # endif 71 # endif 72 #endif 73 74 #endif /* lalloca_h */ 75