diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-09-08 14:15:28 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-09-08 14:15:28 +0200 |
commit | faf7004c13f45442a6cdbe68ba977523d6593fc7 (patch) | |
tree | ac89711aa837fefbd02b157cb5f18685acd25b15 /libwaitress/src | |
parent | 83ba73a034583165d03873e8c3098397fc9ae5e8 (diff) | |
download | pianobar-windows-faf7004c13f45442a6cdbe68ba977523d6593fc7.tar.gz pianobar-windows-faf7004c13f45442a6cdbe68ba977523d6593fc7.tar.bz2 pianobar-windows-faf7004c13f45442a6cdbe68ba977523d6593fc7.zip |
C99 conformance
Diffstat (limited to 'libwaitress/src')
-rw-r--r-- | libwaitress/src/main.c | 3 | ||||
-rw-r--r-- | libwaitress/src/waitress.h | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/libwaitress/src/main.c b/libwaitress/src/main.c index cc06ec6..545aa0a 100644 --- a/libwaitress/src/main.c +++ b/libwaitress/src/main.c @@ -21,6 +21,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#define _POSIX_C_SOURCE 1 /* required by getaddrinfo() */ +#define _BSD_SOURCE /* snprintf() */ + #include <sys/types.h> #include <sys/socket.h> #include <netdb.h> diff --git a/libwaitress/src/waitress.h b/libwaitress/src/waitress.h index d8c379d..0dab545 100644 --- a/libwaitress/src/waitress.h +++ b/libwaitress/src/waitress.h @@ -64,8 +64,8 @@ void WaitressSetProxy (WaitressHandle_t *, const char *, const char *); char *WaitressUrlEncode (const char *); char WaitressSplitUrl (const char *, char *, size_t, char *, size_t, char *, size_t); -inline char WaitressSetUrl (WaitressHandle_t *, const char *); -inline void WaitressSetHPP (WaitressHandle_t *, const char *, const char *, +char WaitressSetUrl (WaitressHandle_t *, const char *); +void WaitressSetHPP (WaitressHandle_t *, const char *, const char *, const char *); WaitressReturn_t WaitressFetchBuf (WaitressHandle_t *, char **); WaitressReturn_t WaitressFetchCall (WaitressHandle_t *); |