summaryrefslogtreecommitdiffstats
path: root/Tests/X11/X11.c
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-10-29 20:58:35 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-10-29 20:58:35 (GMT)
commitea2001e6e5c6c9386335e829cfa67ab9083f3a40 (patch)
tree410126ff892ad83420aa25db2516212fc8249d1e /Tests/X11/X11.c
parenta43958f4f0f3797e9eb76cb9b93d3bf5b4d2fab2 (diff)
downloadCMake-ea2001e6e5c6c9386335e829cfa67ab9083f3a40.zip
CMake-ea2001e6e5c6c9386335e829cfa67ab9083f3a40.tar.gz
CMake-ea2001e6e5c6c9386335e829cfa67ab9083f3a40.tar.bz2
Print message on system without X11
Diffstat (limited to 'Tests/X11/X11.c')
-rw-r--r--Tests/X11/X11.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tests/X11/X11.c b/Tests/X11/X11.c
index fae9999..ed5d491 100644
--- a/Tests/X11/X11.c
+++ b/Tests/X11/X11.c
@@ -30,7 +30,8 @@ char **argv;
mywindow=XCreateSimpleWindow(mydisplay,
DefaultRootWindow(mydisplay),
- myhint.x, myhint.y, myhint.width, myhint.height, 5,
+ myhint.x, myhint.y, myhint.width,
+ myhint.height, 5,
myforeground, mybackground );
XDestroyWindow(mydisplay, mywindow);
XCloseDisplay(mydisplay);
@@ -40,8 +41,11 @@ char **argv;
#else
+#include "stdio.h"
+
int main()
{
+ printf("No X on this computer\n");
return 0;
}