summaryrefslogtreecommitdiff
path: root/src/config.h
diff options
context:
space:
mode:
authorMichał Cichoń <michcic@gmail.com>2015-08-25 06:45:41 +0200
committerMichał Cichoń <michcic@gmail.com>2015-08-25 06:45:41 +0200
commita3bae55d41f5159df3a0125f02a8fa322e81bbe3 (patch)
tree06163f5e15a4902428ece78fb278e3f5429f697b /src/config.h
parent34b6068d229efcb934fa40b5f4d47a46cedae552 (diff)
downloadpianobar-windows-a3bae55d41f5159df3a0125f02a8fa322e81bbe3.tar.gz
pianobar-windows-a3bae55d41f5159df3a0125f02a8fa322e81bbe3.tar.bz2
pianobar-windows-a3bae55d41f5159df3a0125f02a8fa322e81bbe3.zip
libpiano: Abstract out blowfish cipher to PianoCipher_t so different implementations than gcrypt can be used.
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h33
1 files changed, 11 insertions, 22 deletions
diff --git a/src/config.h b/src/config.h
index 788455c..2d335a9 100644
--- a/src/config.h
+++ b/src/config.h
@@ -6,32 +6,21 @@
#define VERSION "2014.09.28-dev"
-/* glibc feature test macros, define _before_ including other files */
-#define _POSIX_C_SOURCE 200809L
-
-/* ffmpeg/libav quirks detection
- * ffmpeg’s micro versions always start at 100, that’s how we can distinguish
- * ffmpeg and libav */
-#include <libavfilter/version.h>
-
-/* is "timeout" option present (all versions of ffmpeg, not libav) */
-#if LIBAVFILTER_VERSION_MICRO >= 100
-#define HAVE_AV_TIMEOUT
+/* Visual C++ name restrict differently */
+#ifdef _WIN32
+#define restrict __restrict
#endif
-/* does graph_send_command exist (ffmpeg >=2.2) */
-#if LIBAVFILTER_VERSION_MAJOR >= 4 && \
- LIBAVFILTER_VERSION_MICRO >= 100
-#define HAVE_AVFILTER_GRAPH_SEND_COMMAND
+/* Visual C++ does not have inline keyword in C */
+#ifdef _WIN32
+#define inline __inline
#endif
-/* need avcodec.h (ffmpeg 1.2) */
-#if LIBAVFILTER_VERSION_MAJOR == 3 && \
- LIBAVFILTER_VERSION_MINOR <= 42 && \
- LIBAVFILTER_VERSION_MINOR > 32 && \
- LIBAVFILTER_VERSION_MICRO >= 100
-#define HAVE_AV_BUFFERSINK_GET_BUFFER_REF
-#define HAVE_LIBAVFILTER_AVCODEC_H
+/* Visual C++ does not have strcasecmp */
+#ifdef _WIN32
+#define strcasecmp _stricmp
#endif
+#define CURL_STATICLIB
+
#endif /* SRC_CONFIG_H_S6A1C09K */