6a5f8c2373aa3789f7d00bd3569b55d35e93d2e9
[xscreensaver] / OSX / XScreenSaverSubclass.m
1 /* xscreensaver, Copyright (c) 2006 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 /* This stub is compiled differently for each saver, just to ensure that
13    each one has a different class name.  If multiple savers use the
14    XScreenSaver class directly, System Preferences gets really confused.
15  */
16
17 #ifndef CLASS
18  ERROR! -DCLASS missing
19 #endif
20
21 #ifdef USE_GL
22 # import "XScreenSaverGLView.h"
23 # define SUPERCLASS XScreenSaverGLView
24 #else
25 # import "XScreenSaverView.h"
26 # define SUPERCLASS XScreenSaverView
27 #endif
28
29 @interface CLASS : SUPERCLASS { }
30 @end
31
32 @implementation CLASS
33 @end