remove toggle.h

This commit is contained in:
speedie 2023-02-26 16:38:26 +01:00
parent a009d77d90
commit 61a422dacb
4 changed files with 7 additions and 12 deletions

View file

@ -49,7 +49,7 @@ Note: This is an incomplete list, it's just here to give you an idea of what thi
- libXrender - libXrender
- freetype - freetype
- imlib2 - imlib2
- Used for image support, can be disabled if you don't want this by editing host.mk and toggle.h - Used for image support, can be disabled if you don't want this by editing host.mk and defining NOIMAGE
- libXinerama - libXinerama
- Can be disabled if you don't want/need multi-monitor support. - Can be disabled if you don't want/need multi-monitor support.
- tcc compiler (you can swap it out for GCC by passing CC="gcc" to the `make` command if you want) - tcc compiler (you can swap it out for GCC by passing CC="gcc" to the `make` command if you want)

1
TODO
View file

@ -1,4 +1,3 @@
# TODO for spmenu # TODO for spmenu
- More example scripts - More example scripts
- toggle.h should probably not be necessary

View file

@ -9,8 +9,6 @@
#include <time.h> #include <time.h>
#include <unistd.h> #include <unistd.h>
#include "toggle.h" /* feature toggle */
#ifdef FRIBIDI #ifdef FRIBIDI
#define USERTL 1 #define USERTL 1
#else #else
@ -21,6 +19,12 @@
#include <fribidi.h> #include <fribidi.h>
#endif #endif
#ifdef NOIMAGE
#define USEIMAGE 0
#else
#define USEIMAGE 1
#endif
#if USEIMAGE #if USEIMAGE
#include <errno.h> #include <errno.h>
#include <pwd.h> #include <pwd.h>

View file

@ -1,8 +0,0 @@
/* Toggle patches
* This header allows you to enable/disable patches that can break compability or decrease performance with certain OSes or configurations.
*
* If it's disabled (set to 0), it will not be compiled in with spmenu. This keeps the binary small and may make the experience better.
*/
/* Image related patches */
#define USEIMAGE 1 /* Include image support. Requires imlib2 */