libupnp/upnp
Marcelo Roberto Jimenez a15d46e142 Deal with "inline" when "-ansi" compiler option is active.
This mode can be recognized by the macro __STRICT_ANSI__.

From man gcc:

-ansi
 In C mode, this is equivalent to -std=c89. In C++ mode, it is equivalent to
-std=c++98.

 This turns off certain features of GCC that are incompatible with ISO C90
(when compiling C code), or of standard (when compiling code), such as the
asm and typeof keywords, and predefined macros such as unix and vax that
identify the type of system you are using. It also enables the undesirable
and rarely used ISO trigraph feature. For the C compiler, it disables
recognition of style // comments as well as the inline keyword.

 The alternate keywords _ _asm_ _, _ _extension_ _, _ _inline_ _ and
_ _typeof_ _ continue to work despite -ansi. You would not want to use them
in an ISO C program, of course, but it is useful to put them in header files
that might be included in compilations done with -ansi. Alternate predefined
macros such as _ _unix_ _ and _ _vax_ _ are also available, with or without
-ansi.

 The -ansi option does not cause non-ISO programs to be rejected gratuitously.
For that, -pedantic is required in addition to -ansi.

 The macro _ _STRICT_ANSI_ _ is predefined when the -ansi option is used.
Some header files may notice this macro and refrain from declaring certain
functions or defining certain macros that the ISO standard doesn't call for;
this is to avoid interfering with any programs that might use these names for
other things.

 Functions that would normally be built in but do not have semantics defined
by ISO C (such as alloca and ffs) are not built-in functions when -ansi is
used.
(cherry picked from commit da7f3bf1c1)
2010-11-16 03:15:42 -02:00
..
doc Include prebuilt documentation (html,pdf), dropping doc++ dependancy. 2006-07-06 12:37:29 +00:00
inc Deal with "inline" when "-ansi" compiler option is active. 2010-11-16 03:15:42 -02:00
m4 Remove excessive 'dnl's from libupnp.m4. 2010-06-26 11:09:06 +00:00
sample Fix for "SampleUtil_Initialize was called multiple times!" bug. 2010-11-06 00:46:58 -02:00
src Added the convenience function UpnpResolveURL2() to upnptools.c. 2010-11-15 01:02:07 -02:00
test Merge of Mac OS X patch from Stéphane Corthésy (davelopper), 2007-08-06 02:07:41 +00:00
unittest .gitignore for unittest/templates/*.pp.c. 2010-10-21 00:52:09 -02:00
LICENSE Removing unnecessary additional directory level. 2006-07-04 02:44:17 +00:00
Makefile.am Fixes for list.h and poison.h to be used in C++ code. 2010-11-15 00:07:14 -02:00