]> git.saurik.com Git - wxWidgets.git/blob - setup.h_vms
fixed incorrect GetTextExtent for wxTELETYPE font
[wxWidgets.git] / setup.h_vms
1 /*****************************************************************************
2 * *
3 * Template for the set.h file for VMS *
4 * Created from setup.h_in *
5 * Author : J.Jansen (joukj@hrem.stm.tudelft.nl) *
6 * Date : 9 November 1999 *
7 * *
8 *****************************************************************************/
9
10 /* This define (__WX_SETUP_H__) is used both to insure setup.h is included
11 * only once and to indicate that we are building using configure. */
12 #ifndef __WX_SETUP_H__
13 #define __WX_SETUP_H__
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include <wx/vms_x_fix.h>
20
21 /* never undefine inline or const keywords for C++ compilation */
22 #ifndef __cplusplus
23
24 /* Define to empty if the keyword does not work. */
25 #undef const
26
27 /* Define as __inline if that's what the C compiler calls it. */
28 #undef inline
29
30 #endif /* __cplusplus */
31
32 /* fill in with the string wxGetOsDescription() will return */
33 #define WXWIN_OS_DESCRIPTION "OpenVMS"
34
35 /* Define to `int' if <sys/types.h> doesn't define. */
36 #undef gid_t
37
38 /* Define if you don't have vprintf but do have _doprnt. */
39 #undef HAVE_DOPRNT
40
41 /* Define if you have the vprintf function. */
42 #define HAVE_VPRINTF
43
44 /* Define to `int' if <sys/types.h> doesn't define. */
45 #undef mode_t
46
47 /* Define to `long' if <sys/types.h> doesn't define. */
48 #undef off_t
49
50 /* Define to `int' if <sys/types.h> doesn't define. */
51 #undef pid_t
52
53 /* Define to `unsigned' if <sys/types.h> doesn't define. */
54 #undef size_t
55
56 /* Define if you have the ANSI C header files. */
57 #define STDC_HEADERS
58
59 /* Define to `int' if <sys/types.h> doesn't define. */
60 #undef uid_t
61
62 /* Define if your processor stores words with the most significant
63 byte first (like Motorola and SPARC, unlike Intel and VAX). */
64 #undef WORDS_BIGENDIAN
65
66 /* Define if the X Window System is missing or not being used. */
67 #undef X_DISPLAY_MISSING
68
69 /* Define if lex declares yytext as a char * by default, not a char[]. */
70 #undef YYTEXT_POINTER
71
72 /* Define this if your version of GTK+ is greater than 1.2 */
73 #define __WXGTK12__ 1
74
75 /* Define this if your version of GTK+ is greater than 1.2.7 */
76 #define __WXGTK127__ 1
77
78 /* Define this if your version of GTK+ is greater than 1.3 */
79 #undef __WXGTK20__
80
81 /*
82 * Define to 1 for Unix[-like] system
83 */
84 #define wxUSE_UNIX 1
85
86 #define __UNIX__
87 #undef __LINUX__
88 #undef __SGI__
89 #undef __HPUX__
90 #undef __SYSV__
91 #undef __SVR4__
92 #undef __AIX__
93 #undef __SUN__
94 #undef __SOLARIS__
95 #undef __SUNOS__
96 #define __ALPHA__
97 #undef __OSF__
98 #undef __BSD__
99 #undef __FREEBSD__
100 #define __VMS__
101 #undef __ULTRIX__
102 #undef __DATA_GENERAL__
103 #undef __EMX__
104 #undef _GNU_SOURCE
105
106 /* Stupid hack; __WINDOWS__ clashes with wx/defs.h */
107 #ifndef __WINDOWS__
108 #undef __WINDOWS__
109 #endif
110
111 #undef __WIN95__
112 #undef __WIN32__
113 #undef __GNUWIN32__
114 #undef STRICT
115 #undef WINVER
116
117 /* enable native status bar under Win32 */
118 #ifdef __WIN95__
119 #define wxUSE_NATIVE_STATUSBAR 1
120 #endif
121
122 /* enable rich edit under Win32 */
123 #if defined(__WIN95__) && !defined(__TWIN32__) && !defined(__GNUWIN32_OLD__)
124 #define wxUSE_RICHEDIT 1
125 #else
126 #define wxUSE_RICHEDIT 0
127 #endif
128
129 /*
130 * Supports bool type
131 */
132 #define HAVE_BOOL
133
134 /*
135 * Use zlib
136 */
137 #define wxUSE_ZLIB 1
138 /*
139 * Use libpng
140 */
141 #define wxUSE_LIBPNG 1
142 /*
143 * Use libjpeg
144 */
145 #define wxUSE_LIBJPEG 1
146 /*
147 * Use libtiff
148 */
149 #define wxUSE_LIBTIFF 1
150 /*
151 * Use iODBC
152 */
153 #define wxUSE_ODBC 0
154 #define wxODBC_FWD_ONLY_CURSORS 1
155 #define wxODBC_BACKWARD_COMPATABILITY 0
156 /*
157 * Use freetype
158 */
159 #define wxUSE_FREETYPE 0
160 /*
161 * Use Threads
162 */
163 #define wxUSE_THREADS 1
164 /*
165 * Have glibc2
166 */
167 #define wxHAVE_GLIBC2 0
168 /*
169 * Use libXpm
170 */
171 #define wxHAVE_LIB_XPM 1
172 /*
173 * Use OpenGL
174 */
175 #define wxUSE_OPENGL 1
176 #define wxUSE_GLCANVAS 1
177 /*
178 * Use GUI
179 */
180 #define wxUSE_GUI 1
181 /*
182 * Don't use GUI (defined to 1 when compiling/using base only)
183 */
184 #define wxUSE_NOGUI 0
185
186 /*
187 * Catch fatal program exceptions
188 */
189 #define wxUSE_ON_FATAL_EXCEPTION 0
190
191 /*
192 * Use constraints mechanism
193 */
194 #define wxUSE_CONSTRAINTS 1
195
196 /*
197 * Use validators
198 */
199 #define wxUSE_VALIDATORS 1
200
201 /*
202 * Use accelerators
203 */
204 #define wxUSE_ACCEL 1
205
206 /*
207 * Use wxTextEntryDialog
208 */
209 #define wxUSE_TEXTDLG 1
210
211 /*
212 * Use startup tips
213 */
214 #define wxUSE_STARTUP_TIPS 1
215
216 /*
217 * Use progress dialog
218 */
219 #define wxUSE_PROGRESSDLG 1
220
221 /*
222 * Use directory chooser dialog
223 */
224 #define wxUSE_DIRDLG 1
225
226 /*
227 * Joystick support (Linux/GTK only)
228 */
229 #define wxUSE_JOYSTICK 0
230
231 /*
232 * Use this control
233 */
234 #define wxUSE_CARET 1
235 /*
236 * Use this control
237 */
238 #define wxUSE_BMPBUTTON 1
239 /*
240 * Use this control
241 */
242 #define wxUSE_CHECKBOX 1
243 /*
244 * Use this control
245 */
246 #define wxUSE_CHECKLISTBOX 1
247 /*
248 * Use this control
249 */
250 #define wxUSE_COMBOBOX 1
251 /*
252 * Use this control
253 */
254 #define wxUSE_CHOICE 1
255 /*
256 * Use this control
257 */
258 #define wxUSE_GAUGE 1
259 /*
260 * Use this control
261 */
262 #define wxUSE_GRID 1
263 /*
264 * Use this control
265 */
266 #define wxUSE_NEW_GRID 1
267 /*
268 * Use the new prototype wxGrid classes
269 * (wxUSE_GRID must also be defined)
270 */
271 #define wxUSE_IMAGLIST 1
272 /*
273 * Use this control
274 */
275 #define wxUSE_LISTBOX 1
276 /*
277 * Use this control
278 */
279 #define wxUSE_LISTCTRL 1
280 /*
281 * Use wxPlot class
282 */
283 #define wxUSE_PLOT 1
284 /*
285 * Use this control
286 */
287 #define wxUSE_NOTEBOOK 1
288 /*
289 * Use this control
290 */
291 #define wxUSE_RADIOBOX 1
292 /*
293 * Use this control
294 */
295 #define wxUSE_RADIOBTN 1
296 /*
297 * Use this control
298 */
299 #define wxUSE_SASH 1
300 /*
301 * Use this control
302 */
303 #define wxUSE_SCROLLBAR 1
304 /*
305 * Use this control
306 */
307 #define wxUSE_SLIDER 1
308 /*
309 * Use this control
310 */
311 #define wxUSE_SPINBTN 1
312 /*
313 * Use this control
314 */
315 #define wxUSE_SPINCTRL 1
316 /*
317 * Use this control
318 */
319 #define wxUSE_SPLITTER 1
320 /*
321 * Use this control
322 */
323 #define wxUSE_STATBMP 1
324 /*
325 * Use this control
326 */
327 #define wxUSE_STATBOX 1
328 /*
329 * Use this control
330 */
331 #define wxUSE_STATLINE 1
332 /*
333 * Use this control
334 */
335 #define wxUSE_STATUSBAR 1
336 /*
337 * Use Tab dialog class - obsolete, use wxNotebook instead
338 */
339 #define wxUSE_TAB_DIALOG 0
340 /* compatibility */
341 #define wxUSE_TABDIALOG wxUSE_TAB_DIALOG
342 /*
343 * Use this control
344 */
345 #define wxUSE_TOOLBAR 1
346
347 /* If 1, use the native toolbar, otherwise use the generic version
348 * (wxToolBarSimple) which may also be use together with the native one.
349 */
350 #define wxUSE_TOOLBAR_NATIVE 1
351
352 /*
353 * Use generic wxToolBar instead of/together with the native one?
354 */
355 #define wxUSE_TOOLBAR_SIMPLE 1
356
357 #if defined(__WXWINE__) || defined(__GNUWIN32__) || defined(__WXPM__)
358 #define wxUSE_OWNER_DRAWN 1
359 #if wxUSE_TOOLBAR
360 #define wxUSE_BUTTONBAR 1
361 #endif
362 #endif
363
364 /*
365 * Use this control
366 */
367 #define wxUSE_TREECTRL 1
368
369 /*
370 * Use wxLongLong (a.k.a. int64) class
371 */
372 #define wxUSE_LONGLONG 1
373
374 /*
375 * Use wxFile class
376 */
377 #define wxUSE_FILE 1
378 /*
379 * Use wxTextFile class
380 */
381 #define wxUSE_TEXTFILE 1
382 /*
383 * Use log classes and logging functions
384 */
385 #define wxUSE_LOG 1
386 /*
387 * Use time and date classes
388 */
389 #define wxUSE_TIMEDATE 1
390 /*
391 * Use wave class
392 */
393 #define wxUSE_WAVE 1
394 /*
395 * Use config system
396 */
397 #define wxUSE_CONFIG 1
398 /*
399 * Use intl system
400 */
401 #define wxUSE_INTL 1
402 /*
403 * Use streams
404 */
405 #define wxUSE_STREAMS 1
406 /*
407 * Use class serialization
408 */
409 #define wxUSE_SERIAL 1
410 /*
411 * Use sockets
412 */
413 #define wxUSE_SOCKETS 1
414 /*
415 * Use dialup manager
416 */
417 #define wxUSE_DIALUP_MANAGER 0
418 /*
419 * Use standard C++ streams if 1. If 0, use wxWin
420 * streams implementation.
421 */
422 #define wxUSE_STD_IOSTREAM 0
423 /*
424 * wxLibrary class
425 */
426 #define wxUSE_DYNLIB_CLASS 1
427
428 /*
429 * Use font metric files in GetTextExtent for wxPostScriptDC
430 * Use consistent PostScript fonts for AFM and printing (!)
431 */
432 #define wxUSE_AFM_FOR_POSTSCRIPT 1
433 #define wxUSE_NORMALIZED_PS_FONTS 1
434
435 /* compatibility */
436 #define WX_NORMALIZED_PS_FONTS wxUSE_NORMALIZED_PS_FONTS
437
438 /*
439 * Use PostScript device context
440 */
441 #define wxUSE_POSTSCRIPT 1
442
443 /*
444 * Compile wxString with some Unicode support?
445 */
446 #define wxUSE_WCHAR_T 0
447
448 /*
449 * Compile wxString in wide character (Unicode) mode?
450 */
451 #define wxUSE_UNICODE 0
452
453 /*
454 * Work around a bug in GNU libc 5.x wcstombs() implementation.
455 *
456 * Note that you must link your programs with libc.a if you enable this and you
457 * have libc 5 (you should enable this for libc6 where wcsrtombs() is
458 * thread-safe version of wcstombs()).
459 */
460 #define wxUSE_WCSRTOMBS 0
461
462 /*
463 * Use the new experimental implementation of wxString::Printf()?
464 *
465 * Warning: enabling this may cause internal compiler errors with gcc!
466 */
467 #define wxUSE_EXPERIMENTAL_PRINTF 0
468
469 /*
470 * Use Interprocess communication
471 */
472 #define wxUSE_IPC 1
473 /*
474 * Use wxGetResource & wxWriteResource (change .Xdefaults)
475 */
476 #define wxUSE_X_RESOURCES 1
477 /*
478 * Use clipboard
479 */
480 #define wxUSE_CLIPBOARD 1
481 /*
482 * Use tooltips
483 */
484 #define wxUSE_TOOLTIPS 0
485 /*
486 * Use dnd
487 */
488 #ifdef __WXGTK__
489 #define wxUSE_DRAG_AND_DROP 1
490 #else
491 #define wxUSE_DRAG_AND_DROP 0
492 #endif
493 /*
494 * Use spline
495 */
496 #define wxUSE_SPLINES 1
497 /*
498 * Use wxLibrary class
499 */
500 #define wxUSE_DYNLIB_CLASS 1
501
502 /*
503 * Use the mdi architecture
504 */
505 #define wxUSE_MDI_ARCHITECTURE 1
506 /*
507 * Use the document/view architecture
508 */
509 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
510 /*
511 * Use the print/preview architecture
512 */
513 #define wxUSE_PRINTING_ARCHITECTURE 1
514
515 /*
516 * Use Prolog IO
517 */
518 #define wxUSE_PROLOGIO 1
519 /*
520 * Use wxWindows resource loading (.wxr-files) (Needs wxUSE_PROLOGIO 1)
521 */
522 #define wxUSE_RESOURCES 1
523
524 /* for compatibility */
525 #define wxUSE_WX_RESOURCES wxUSE_RESOURCES
526
527 /*
528 * Use wxWindows help facility (needs wxUSE_IPC 1)
529 */
530 #define wxUSE_HELP 1
531 /*
532 * Use iostream.h rather than iostream
533 */
534 #define wxUSE_IOSTREAMH 1
535 /*
536 * Use Apple Ieee-double converter
537 */
538 #define wxUSE_APPLE_IEEE 0
539 /*
540 * Compatibility with 2.0 API.
541 */
542 #define WXWIN_COMPATIBILITY_2 1
543 /*
544 * Enables debugging: memory tracing, assert, etc., contains debug level
545 */
546 #define WXDEBUG 0
547 /*
548 * Enables debugging version of wxObject::new and wxObject::delete (IF WXDEBUG)
549 * WARNING: this code may not work with all architectures, especially
550 * if alignment is an issue.
551 */
552 #define wxUSE_MEMORY_TRACING 0
553 /*
554 * Enable debugging version of global memory operators new and delete
555 * Disable it, If this causes problems (e.g. link errors)
556 */
557 #define wxUSE_DEBUG_NEW_ALWAYS 0
558 /*
559 * VZ: What does this one do? (FIXME)
560 */
561 #define wxUSE_DEBUG_CONTEXT 0
562 /*
563 * In debug mode, causes new to be defined to
564 * be WXDEBUG_NEW (see object.h). If this causes
565 * problems (e.g. link errors), set this to 0.
566 */
567 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
568 /*
569 * Matthews garbage collection (used for MrEd?)
570 */
571 #define WXGARBAGE_COLLECTION_ON 1
572 /*
573 * Use splines
574 */
575 #define wxUSE_SPLINES 1
576 /*
577 * wxUSE_DYNAMIC_CLASSES is TRUE for the Xt port
578 */
579 #define wxUSE_DYNAMIC_CLASSES 1
580
581 /*
582 * Support for metafiles
583 */
584 #define wxUSE_METAFILE 1
585
586 /*
587 * wxMiniFrame
588 */
589 #define wxUSE_MINIFRAME 1
590
591 /*
592 * wxHTML
593 */
594 #define wxUSE_HTML 1
595
596 /*
597 * (virtual) filesystems code
598 */
599 #define wxUSE_FILESYSTEM 1
600 #define wxUSE_FS_INET 1
601 #define wxUSE_FS_ZIP 1
602
603 /*
604 * A class that shows info window when app is busy
605 * (works exactly like wxBusyCursor)
606 */
607 #define wxUSE_BUSYINFO 1
608
609 /*
610 * Zip stream for accessing files stored inside .zip archives
611 */
612 #define wxUSE_ZIPSTREAM 1
613
614 /*
615 * GIF image format support
616 */
617 #define wxUSE_GIF 1
618
619 /*
620 * PCX image format support
621 */
622 #define wxUSE_PCX 1
623
624 /*
625 * PNM image format support
626 */
627 #define wxUSE_PNM 1
628
629 /*
630 * Disable this if your compiler can't cope
631 * with omission of prototype parameters.
632 */
633 #define REMOVE_UNUSED_ARG 1
634 /*
635 * The const keyword is being introduced more in wxWindows.
636 * You can use this setting to maintain backward compatibility.
637 * If 0: will use const wherever possible.
638 * If 1: will use const only where necessary
639 * for precompiled headers to work.
640 * If 2: will be totally backward compatible, but precompiled
641 * headers may not work and program size will be larger.
642 */
643 #define CONST_COMPATIBILITY 0
644
645 /* define with the name of timezone variable */
646 #undef WX_TIMEZONE
647
648 /* The type of 3rd argument to getsockname() - usually size_t or int */
649 #define SOCKLEN_T size_t
650
651 /* gettimeofday() usually takes 2 arguments, but some really old systems might
652 * have only one, in which case define WX_GETTIMEOFDAY_NO_TZ */
653 #undef WX_GETTIMEOFDAY_NO_TZ
654
655 /* struct tm doesn't always have the tm_gmtoff field, define this if it is
656 * present */
657 #define WX_GMTOFF_IN_TM
658
659 /* Define if you have pw_gecos field in struct passwd */
660 #undef HAVE_PW_GECOS
661
662 /* Define if you have dlopen() */
663 #define HAVE_DLOPEN 1
664
665 /* Define if you have gettimeofday() */
666 #define HAVE_GETTIMEOFDAY
667
668 /* Define if you have ftime() */
669 #define HAVE_FTIME
670
671 /* Define if you have localtime() */
672 #define HAVE_LOCALTIME
673
674 /* Define if you have nanosleep() */
675 #undef HAVE_NANOSLEEP
676
677 /* Define if you have sched_yield */
678 #undef HAVE_SCHED_YIELD
679
680 /* Define if you have pthread_cancel */
681 #define HAVE_PTHREAD_CANCEL 1
682
683 /* Define if you have sigaction() */
684 #define HAVE_SIGACTION 1
685
686 /* Define if you have sigemptyset() */
687 #define HAVE_SIGEMPTYSET 1
688
689 /* Define if you have shl_load() */
690 #undef HAVE_SHL_LOAD
691
692 /* Define if you have strptime() */
693 #define HAVE_STRPTIME 1
694
695 /* Define if you have all functions to set thread priority */
696 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
697
698 /* Define if you can specify exit functions to a thread */
699 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
700
701 /* Define if you have timegm() function */
702 #undef HAVE_TIMEGM
703
704 /* Define if you have vsnprintf() */
705 #undef HAVE_VSNPRINTF
706
707 /* Define if you have usleep() */
708 #define HAVE_USLEEP
709
710 /* Define if you have wcslen function */
711 #define HAVE_WCSLEN
712
713 /* define if you have vsscanf function */
714 #undef HAVE_VSSCANF
715
716 /* The number of bytes in a char. */
717 #define SIZEOF_CHAR 1
718
719 /* The number of bytes in a wchar_t. */
720 #define SIZEOF_WCHAR_T 4
721
722 /* The number of bytes in a int. */
723 #define SIZEOF_INT 4
724
725 /* The number of bytes in a int *. */
726 #define SIZEOF_INT_P 4
727
728 /* The number of bytes in a long. */
729 #define SIZEOF_LONG 4
730
731 /* The number of bytes in a long long. */
732 #define SIZEOF_LONG_LONG 8
733
734 /* The number of bytes in a short. */
735 #define SIZEOF_SHORT 2
736
737 /* Define if you have the dlopen function. */
738 #define HAVE_DLOPEN 1
739
740 /* Define if you have the dlerror function. */
741 #define HAVE_DLERROR 1
742
743 /* Define if you have the gethostname function. */
744 #define HAVE_GETHOSTNAME
745
746 /* Define if you have the inet_addr function. */
747 #define HAVE_INET_ADDR
748
749 /* Define if you have the inet_aton function. */
750 #undef HAVE_INET_ATON
751
752 /* Define if you have the nanosleep function. */
753 #undef HAVE_NANOSLEEP
754
755 /* Define if you have the shl_load function. */
756 #undef HAVE_SHL_LOAD
757
758 /* Define if you have strtok_r function. */
759 #undef HAVE_STRTOK_R
760
761 /* Define if you have thr_setconcurrency function */
762 #undef HAVE_THR_SETCONCURRENCY
763
764 /* Define if you have the uname function. */
765 #define HAVE_UNAME
766
767 /* Define if you have the usleep function. */
768 #define HAVE_USLEEP
769
770 /* Define if you have the vfork function. */
771 #define HAVE_VFORK
772
773 /* Define if you have the <X11/XKBlib.h> header file. */
774 #undef HAVE_X11_XKBLIB_H
775
776 /* Define if you have the <fnmatch.h> header file. */
777 #undef HAVE_FNMATCH_H
778
779 /* Define if you have the <iostream> header file. */
780 #undef HAVE_IOSTREAM
781
782 /* Define if you have the <linux/joystick.h> header file. */
783 #undef HAVE_LINUX_JOYSTICK_H
784
785 /* Define if you have the <sched.h> header file. */
786 #undef HAVE_SCHED_H
787
788 /* Define if you have the <strings.h> header file. */
789 #define HAVE_STRINGS_H
790
791 /* Define if you have the <unistd.h> header file. */
792 #define HAVE_UNISTD_H
793
794 /* Define if you have the <wchar.h> header file. */
795 #define HAVE_WCHAR_H
796
797 /* Define if you have the <wcstr.h> header file. */
798 #undef HAVE_WCSTR_H
799
800 /* Define if you have the <iconv.h> header file. */
801 #define HAVE_ICONV_H 1
802
803 /* Define if you have the <langinfo.h> header file. */
804 #define HAVE_LANGINFO_H 1
805
806 /* Define this if you are using gtk and gdk contains support for X11R6 XIM */
807 #undef HAVE_XIM
808
809 #endif /* __WX_SETUP_H__ */