summaryrefslogtreecommitdiff
path: root/src/lyrics.h
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2009-02-13 17:39:53 +0100
committerAndrzej Rybczak <electricityispower@gmail.com>2009-02-13 17:39:53 +0100
commit08e162f6aca70ae28e101d3f3ce217ca4dfa538d (patch)
tree4f0bb19fc9a67ab6d51a8b9001c950d4b5efd6fd /src/lyrics.h
parent8ba72bc78ae92d1ed5b4cdfb81e4879680362961 (diff)
fix compilation --without-curl
Diffstat (limited to 'src/lyrics.h')
-rw-r--r--src/lyrics.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/lyrics.h b/src/lyrics.h
index 703ae2b9..51855de5 100644
--- a/src/lyrics.h
+++ b/src/lyrics.h
@@ -23,20 +23,22 @@
#include "ncmpcpp.h"
-#ifdef HAVE_CURL_CURL_H
-# include <pthread.h>
-# include "curl/curl.h"
-
namespace Lyrics
{
void Init();
void Resize();
void Update();
- bool Ready();
void Get();
+# ifdef HAVE_CURL_CURL_H
+ bool Ready();
+# endif // HAVE_CURL_CURL_H
}
+#ifdef HAVE_CURL_CURL_H
+# include <pthread.h>
+# include "curl/curl.h"
+
struct LyricsPlugin
{
const char *url;
@@ -47,7 +49,7 @@ struct LyricsPlugin
const char *GetLyricsPluginName(int);
-#endif
+#endif // HAVE_CURL_CURL_H
#endif