1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-02-03 12:38:38 +00:00

make imlib2.c a C++ source, as it uses the C++ symbol 'to_real_path()'

This commit is contained in:
Phil Sutter 2010-01-10 22:04:15 +01:00
parent b4a73e166e
commit 081f5e1699
3 changed files with 3 additions and 11 deletions

View File

@ -147,7 +147,7 @@ if(BUILD_NVIDIA)
endif(BUILD_NVIDIA)
if(BUILD_IMLIB2)
set(imlib2 imlib2.c)
set(imlib2 imlib2.cc)
set(optional_sources ${optional_sources} ${imlib2})
endif(BUILD_IMLIB2)

View File

@ -118,9 +118,9 @@ void cimlib_deinit(void)
void cimlib_add_image(const char *args)
{
struct image_list_s *cur = NULL;
char *tmp;
const char *tmp;
cur = malloc(sizeof(struct image_list_s));
cur = (struct image_list_s *)malloc(sizeof(struct image_list_s));
memset(cur, 0, sizeof(struct image_list_s));
if (!sscanf(args, "%1023s", cur->name)) {

View File

@ -26,10 +26,6 @@
#include <X11/Xlib.h>
#ifdef __cplusplus
extern "C" {
#endif
void cimlib_add_image(const char *name);
void cimlib_set_cache_size(long size);
void cimlib_set_cache_flush_interval(long interval);
@ -40,8 +36,4 @@ void cimlib_cleanup(void);
void print_image_callback(struct text_object *, char *, int);
#ifdef __cplusplus
}
#endif
#endif /* _CONKY_IMBLI2_H_ */