]> Dogcows Code - chaz/openbox/commitdiff
build something when theres no xft support
authorDana Jansens <danakj@orodu.net>
Thu, 15 Aug 2002 18:38:29 +0000 (18:38 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 15 Aug 2002 18:38:29 +0000 (18:38 +0000)
util/xftlsfonts.cc

index 4f33737f168e66e59881ef807c3ece9253e477e0..e8d6be2d7de72d025740333e2d0b83f1a9844d70 100644 (file)
@@ -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
+
This page took 0.02384 seconds and 4 git commands to generate.