diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-10-29 20:58:35 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-10-29 20:58:35 (GMT) |
commit | ea2001e6e5c6c9386335e829cfa67ab9083f3a40 (patch) | |
tree | 410126ff892ad83420aa25db2516212fc8249d1e | |
parent | a43958f4f0f3797e9eb76cb9b93d3bf5b4d2fab2 (diff) | |
download | CMake-ea2001e6e5c6c9386335e829cfa67ab9083f3a40.zip CMake-ea2001e6e5c6c9386335e829cfa67ab9083f3a40.tar.gz CMake-ea2001e6e5c6c9386335e829cfa67ab9083f3a40.tar.bz2 |
Print message on system without X11
-rw-r--r-- | Tests/X11/X11.c | 6 |
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; } |