diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-08-15 18:38:29 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-08-15 18:38:29 +0000 |
| commit | 0479a9f263ca12876027c676a6f2d7e06bad1472 (patch) | |
| tree | 3da46b1aa6ecfe18346d54eaf56c03af536c621c /util | |
| parent | 352163bd649cbf0060883f612de296923e0d22a6 (diff) | |
build something when theres no xft support
Diffstat (limited to 'util')
| -rw-r--r-- | util/xftlsfonts.cc | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/util/xftlsfonts.cc b/util/xftlsfonts.cc index 4f33737f..e8d6be2d 100644 --- a/util/xftlsfonts.cc +++ b/util/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> @@ -7,9 +22,6 @@ extern "C" { #include <string> #include <vector> -const char *NAME = "xftlsfonts"; -const char *VERSION = "1.0"; - using std::string; using std::cout; using std::endl; @@ -129,3 +141,5 @@ int main(int argc, char **argv) { XCloseDisplay(display); return 0; } +#endif // XFT + |
