Skip to content

Commit

Permalink
Fix naming conflict for Imlib2.h
Browse files Browse the repository at this point in the history
  • Loading branch information
brndnmtthws committed Mar 5, 2024
1 parent e520731 commit 36f0322
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ if(BUILD_NVIDIA)
endif(BUILD_NVIDIA)

if(BUILD_IMLIB2)
set(imlib2 imlib2.cc imlib2.h)
set(imlib2 conky-imlib2.cc conky-imlib2.h)
set(optional_sources ${optional_sources} ${imlib2})
endif(BUILD_IMLIB2)

Expand Down
2 changes: 1 addition & 1 deletion src/imlib2.cc → src/conky-imlib2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*
*/

#include "imlib2.h"
#include "conky-imlib2.h"
#include "config.h"
#include "conky.h"
#include "logging.h"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/conky.cc
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
#include <X11/extensions/Xdamage.h>
#endif
#ifdef BUILD_IMLIB2
#include "imlib2.h"
#include "conky-imlib2.h"
#endif /* BUILD_IMLIB2 */
#endif /* BUILD_X11 */
#ifdef BUILD_NCURSES
Expand Down
2 changes: 1 addition & 1 deletion src/core.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#include "misc.h"
#include "text_object.h"
#ifdef BUILD_IMLIB2
#include "imlib2.h"
#include "conky-imlib2.h"
#endif /* BUILD_IMLIB2 */
#include "proc.h"
#ifdef BUILD_MYSQL
Expand Down
2 changes: 1 addition & 1 deletion src/display-x11.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#endif /* BUILD_XDAMAGE */
#include "fonts.h"
#ifdef BUILD_IMLIB2
#include "imlib2.h"
#include "conky-imlib2.h"
#endif /* BUILD_IMLIB2 */
#ifdef BUILD_MOUSE_EVENTS
#include "mouse-events.h"
Expand Down
2 changes: 1 addition & 1 deletion src/gui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include "wl.h"

#ifdef BUILD_IMLIB2
#include "imlib2.h"
#include "conky-imlib2.h"
#endif /* BUILD_IMLIB2 */
#ifndef OWN_WINDOW
#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion src/x11.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
#include <X11/Xutil.h>

#ifdef BUILD_IMLIB2
#include "imlib2.h"
#include "conky-imlib2.h"
#endif /* BUILD_IMLIB2 */
#ifndef OWN_WINDOW
#include <iostream>
Expand Down

0 comments on commit 36f0322

Please sign in to comment.