Skip to content

Commit

Permalink
Added #if lib curl version check around #include <curl/types.h> as th…
Browse files Browse the repository at this point in the history
…is header was deprecated and now

removed entirely from libcurl-7.21.7.
  • Loading branch information
robertosfield committed Jun 28, 2011
1 parent 3b5cb62 commit 5d25225
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/osgPlugins/curl/ReaderWriterCURL.cpp
Expand Up @@ -21,7 +21,14 @@
#include <fstream>

#include <curl/curl.h>
#include <curl/types.h>

#if LIBCURL_VERSION_NUM < 0x071503
// types.h has been removed in 7.21.7 so have to protect with version guard
// it may be possible to remove it completely but can't yet work out when
// types.h was deprecated so will assume it's still needed in older libcurl versions
// that OSG users are using.
#include <curl/types.h>
#endif

#include "ReaderWriterCURL.h"

Expand Down

0 comments on commit 5d25225

Please sign in to comment.