all repos — openbox @ 0479a9f263ca12876027c676a6f2d7e06bad1472

openbox fork - make it a bit more like ryudo

build something when theres no xft support
Dana Jansens danakj@orodu.net
commit

0479a9f263ca12876027c676a6f2d7e06bad1472

parent

352163bd649cbf0060883f612de296923e0d22a6

1 files changed, 17 insertions(+), 3 deletions(-)

jump to
M util/xftlsfonts.ccutil/xftlsfonts.cc

@@ -1,3 +1,18 @@

+const char *NAME = "xftlsfonts"; +const char *VERSION = "1.0"; + +#ifndef XFT +#include <iostream> + +int main(int, char **) { + cout << NAME << " version " << VERSION << endl; + cout << "Copyright (c) 2002, Ben Jansens <ben@orodu.net>" << endl; + cout << endl; + cout << "Openbox was built without support for Xft fonts. This utility must" + << endl; + cout << "must be built with Xft support in order to function." << endl; +} +#else // XFT extern "C" { #include <X11/Xlib.h> #include <X11/Xft/Xft.h>

@@ -6,9 +21,6 @@

#include <iostream> #include <string> #include <vector> - -const char *NAME = "xftlsfonts"; -const char *VERSION = "1.0"; using std::string; using std::cout;

@@ -129,3 +141,5 @@

XCloseDisplay(display); return 0; } +#endif // XFT +