diff options
author | Boris Faure <billiob@gmail.com> | 2015-02-21 11:31:24 +0100 |
---|---|---|
committer | Boris Faure <billiob@gmail.com> | 2015-02-21 11:40:10 +0100 |
commit | 5d169ebd7186f8889a1de57b3c2cb4d9a2c4fc6c (patch) | |
tree | 8319455d9899899731be5be544d83dec4ee57126 /src | |
parent | 76e9ae6481d968d489aa694e810ca4798a9dcf38 (diff) |
correctly check if ecore_con_url_head() is available
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/win.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/bin/win.c b/src/bin/win.c index f6a4124..90b9c72 100644 --- a/src/bin/win.c +++ b/src/bin/win.c | |||
@@ -1591,11 +1591,7 @@ _popmedia_show(Term *term, const char *src, Media_Type type) | |||
1591 | } | 1591 | } |
1592 | } | 1592 | } |
1593 | 1593 | ||
1594 | /* TODO: XXX: should be s/13/14 */ | 1594 | #ifdef HAVE_ECORE_CON_URL_HEAD |
1595 | #define HAVE_ECORE_CON_URL_HTTP_HEAD \ | ||
1596 | ((ECORE_VERSION_MAJOR > 1) || (ECORE_VERSION_MINOR >= 13)) | ||
1597 | |||
1598 | #if HAVE_ECORE_CON_URL_HTTP_HEAD | ||
1599 | typedef struct _Ty_Http_Head { | 1595 | typedef struct _Ty_Http_Head { |
1600 | const char *handler; | 1596 | const char *handler; |
1601 | const char *src; | 1597 | const char *src; |
@@ -1685,7 +1681,7 @@ _popmedia(Term *term, const char *src) | |||
1685 | Media_Type type; | 1681 | Media_Type type; |
1686 | Config *config = termio_config_get(term->term); | 1682 | Config *config = termio_config_get(term->term); |
1687 | 1683 | ||
1688 | #if HAVE_ECORE_CON_URL_HTTP_HEAD | 1684 | #ifdef HAVE_ECORE_CON_URL_HEAD |
1689 | Ty_Http_Head *ty_head = calloc(1, sizeof(Ty_Http_Head)); | 1685 | Ty_Http_Head *ty_head = calloc(1, sizeof(Ty_Http_Head)); |
1690 | if (!ty_head) | 1686 | if (!ty_head) |
1691 | return; | 1687 | return; |