diff options
| author | Thomas Preud'homme <thomas.preudhomme@celest.fr> | 2011-07-07 12:14:08 +0200 |
|---|---|---|
| committer | Thomas Preud'homme <thomas.preudhomme@celest.fr> | 2011-07-07 12:14:08 +0200 |
| commit | 571465d32bdbb3e17612983d75e799183b94c268 (patch) | |
| tree | 28c12c47a1752e28adb70fee68feb5b69336a7eb /examples/ex4.c.template | |
| parent | 4d6a4a26e08ef8581c70d29f578a42ab7d738c2d (diff) | |
| download | tinycc-571465d32bdbb3e17612983d75e799183b94c268.tar.gz tinycc-571465d32bdbb3e17612983d75e799183b94c268.tar.bz2 | |
Revert "Make examples' shebang use target tcc bindir path"
This reverts commit cb2138f8b098feb1b51a407343a4b99e25d5b506.
Diffstat (limited to 'examples/ex4.c.template')
| -rw-r--r-- | examples/ex4.c.template | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/examples/ex4.c.template b/examples/ex4.c.template deleted file mode 100644 index 81aa00d..0000000 --- a/examples/ex4.c.template +++ /dev/null @@ -1,26 +0,0 @@ -#! @BINDIR@/tcc -run -L/usr/X11R6/lib -lX11 -#include <stdlib.h> -#include <stdio.h> -#include <X11/Xlib.h> - -/* Yes, TCC can use X11 too ! */ - -int main(int argc, char **argv) -{ - Display *display; - Screen *screen; - - display = XOpenDisplay(""); - if (!display) { - fprintf(stderr, "Could not open X11 display\n"); - exit(1); - } - printf("X11 display opened.\n"); - screen = XScreenOfDisplay(display, 0); - printf("width = %d\nheight = %d\ndepth = %d\n", - screen->width, - screen->height, - screen->root_depth); - XCloseDisplay(display); - return 0; -} |
