Change the way external symbols are defined to avoid COMMON symbols, which
don't work on OSX very well.
This commit is contained in:
parent
666d9a3edb
commit
8a7077d5a9
|
@ -6,15 +6,11 @@
|
|||
#include "list.h"
|
||||
#include "trans.h"
|
||||
|
||||
#ifndef NORCSID
|
||||
static char rcs_id[] = "$Id$" ;
|
||||
#endif
|
||||
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
|
||||
/* Include once without redefining EXTERN, to declare all the symbols as extern. */
|
||||
#include "data.h"
|
||||
|
||||
#ifndef NORCSID
|
||||
static char rcs_data[] = RCS_DATA ;
|
||||
#endif
|
||||
/* And again without EXTERN, to define them here. Without the extern versions above
|
||||
* then these symbols will all end up as COMMON, which is poorly supported on OSX. */
|
||||
#undef EXTERN
|
||||
#define EXTERN
|
||||
#include "data.h"
|
||||
|
|
|
@ -2,9 +2,8 @@
|
|||
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
||||
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
||||
*/
|
||||
#ifndef NORCSID
|
||||
#define RCS_DATA "$Id$"
|
||||
#endif
|
||||
|
||||
/* WARNING: don't put guards around this file (there are reasons). See data.c. */
|
||||
|
||||
EXTERN char *stopsuffix; /* Suffix to stop at */
|
||||
EXTERN char *machine; /* The machine id */
|
||||
|
|
Loading…
Reference in a new issue