File: c-sunos.sysv.h

package info (click to toggle)
libcurses-perl 1.02-1
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 312 kB
  • ctags: 376
  • sloc: ansic: 3,411; perl: 621; makefile: 38; sh: 17
file content (42 lines) | stat: -rw-r--r-- 1,170 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*  Hint file for the SunOS platform, SysV version of libcurses.
 *
 *  If this configuration doesn't work, look at the file "c-none.h"
 *  for how to set the configuration options.
 */

/* The combined set of lines below between * vvvv * and * ^^^^ *
 * below is one example of how to fix compiler errors between the
 * curses include file and the perl include files.  It turns out that
 * for the SunOS platform, SysV curses, there were three problems:
 *
 * 1) sprintf() was declared as returning different types in <curses.h>
 *    and "perl.h"
 * 2) "instr" was defined in both <curses.h> and "perl.h"
 * 3) Lots of redefined warnings, because <sys/ioctl.h> was included by
 *    both <curses.h> and "perl.h"
 *
 * You can see by looking at the fixes how each problem was resolved.
 *
 * Note that "perl.h" is always included after this file when deciding
 * how to fix the conflicts.
 */

/* vvvv */
#define sprintf stupid_stupid_stupid
/* ^^^^ */

#include <curses.h>

/* vvvv */
#undef sprintf
#undef instr
#define _sys_ioctl_h
/* ^^^^ */

#define C_LONGNAME
#define C_LONG0ARGS
#undef  C_LONG2ARGS

#define C_TOUCHLINE
#define C_TOUCH3ARGS
#undef  C_TOUCH4ARGS