| 1 | /* xscreensaver, Copyright (c) 1997-2014 Jamie Zawinski <jwz@jwz.org> |
| 2 | * |
| 3 | * Permission to use, copy, modify, distribute, and sell this software and its |
| 4 | * documentation for any purpose is hereby granted without fee, provided that |
| 5 | * the above copyright notice appear in all copies and that both that |
| 6 | * copyright notice and this permission notice appear in supporting |
| 7 | * documentation. No representations are made about the suitability of this |
| 8 | * software for any purpose. It is provided "as is" without express or |
| 9 | * implied warranty. |
| 10 | */ |
| 11 | |
| 12 | #ifdef HAVE_CONFIG_H |
| 13 | # include "config.h" |
| 14 | #endif |
| 15 | |
| 16 | #include <stdlib.h> |
| 17 | #include <stdio.h> |
| 18 | #include <string.h> |
| 19 | #include <math.h> |
| 20 | |
| 21 | #ifdef HAVE_JWXYZ |
| 22 | # include "jwxyz.h" |
| 23 | #else /* real X11 */ |
| 24 | # include <X11/Xlib.h> |
| 25 | # include <X11/Xutil.h> |
| 26 | # include <X11/Xos.h> |
| 27 | #endif /* !HAVE_JWXYZ */ |