fix compilation with libcurl >= 7.21.7

Long time deprecated <curl/types.h> was completely removed in libcurl 7.21.7. If CST also uses newer libcurl <curl/types.h> defines can savely be removed.
Until then use "-DNEW_LIBCURL" for libcurl >= 7.21.7.

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1560 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: 0b80855c4d
Author: gixxpunk <thomas.harfmann@gmail.com>
Date: 2011-07-04 (Mon, 04 Jul 2011)

Origin message was:
------------------
- fix compilation with libcurl >= 7.21.7

Long time deprecated <curl/types.h> was completely removed in libcurl 7.21.7. If CST also uses newer libcurl <curl/types.h> defines can savely be removed.
Until then use "-DNEW_LIBCURL" for libcurl >= 7.21.7.

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1560 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
gixxpunk
2011-07-04 10:03:09 +00:00
parent 5e707737e1
commit dd1874d737
4 changed files with 16 additions and 5 deletions

View File

@@ -143,11 +143,13 @@ void CAudiofileExt::operator=(const CAudiofileExt& src)
//------------------------------------------------------------------------ //------------------------------------------------------------------------
#include <curl/curl.h> #include <curl/curl.h>
#include <curl/types.h>
#include <curl/easy.h> #include <curl/easy.h>
#ifndef NEW_LIBCURL
#include <curl/types.h>
#endif
struct MemoryStruct { struct MemoryStruct {
char *memory; char *memory;
size_t size; size_t size;

View File

@@ -57,9 +57,12 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <curl/curl.h> #include <curl/curl.h>
#include <curl/types.h>
#include <curl/easy.h> #include <curl/easy.h>
#ifndef NEW_LIBCURL
#include <curl/types.h>
#endif
#include <driver/encoding.h> #include <driver/encoding.h>
#include <xmltree/xmlinterface.h> #include <xmltree/xmlinterface.h>

View File

@@ -56,9 +56,12 @@
#define SQUASHFS #define SQUASHFS
#include <curl/curl.h> #include <curl/curl.h>
#include <curl/types.h>
#include <curl/easy.h> #include <curl/easy.h>
#ifndef NEW_LIBCURL
#include <curl/types.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
#include <fcntl.h> #include <fcntl.h>

View File

@@ -22,9 +22,12 @@
#include <system/httptool.h> #include <system/httptool.h>
#include <curl/curl.h> #include <curl/curl.h>
#include <curl/types.h>
#include <curl/easy.h> #include <curl/easy.h>
#ifndef NEW_LIBCURL
#include <curl/types.h>
#endif
#include <global.h> #include <global.h>