| /* Decision whether to use 'inline' or not. | |
| Copyright (C) 2006, 2009 Free Software Foundation, Inc. | |
| This program is free software: you can redistribute it and/or modify it | |
| under the terms of the GNU Lesser General Public License as published | |
| by the Free Software Foundation; either version 3 of the License, or | |
| (at your option) any later version. | |
| This program is distributed in the hope that it will be useful, | |
| but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| Lesser General Public License for more details. | |
| You should have received a copy of the GNU Lesser General Public License | |
| along with this program. If not, see <http://www.gnu.org/licenses/>. */ | |
| /* Written by Bruno Haible <bruno@clisp.org>, 2009. */ | |
| /* This is like the gl_INLINE macro in gnulib/m4/inline.m4, but makes its | |
| decision based on defined preprocessor symbols rather than through | |
| autoconf tests. | |
| See <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00055.html> */ | |
| /* Test for the 'inline' keyword or equivalent. ISO C 99 semantics is not | |
| required, only that 'static inline' works. | |
| Define 'inline' to a supported equivalent, or to nothing if not supported, | |
| like AC_C_INLINE does. Also, define UNISTRING_HAVE_INLINE if 'inline' or an | |
| equivalent is effectively supported, i.e. if the compiler is likely to | |
| drop unused 'static inline' functions. */ | |
| /* GNU C or GNU C++. */ | |
| /* GCC defines __NO_INLINE__ if not optimizing or if -fno-inline is | |
| specified. */ | |
| /* Whether 'inline' has the old GCC semantics or the ISO C 99 semantics, | |
| does not matter. */ | |
| /* Any other C++ compiler. */ | |
| /* Any other C compiler. */ | |
| /* OSF/1 cc has inline. */ | |
| /* AIX 4 xlc, IRIX 6.5 cc have __inline. */ | |
| /* Some older C compiler. */ | |