avoid redefinitions

This commit is contained in:
christos 2013-10-18 20:19:36 +00:00
parent 30eeb0614b
commit 9f630f8bc1
3 changed files with 21 additions and 12 deletions

View File

@ -1,5 +1,5 @@
/* $OpenBSD: mdef.h,v 1.29 2006/03/20 20:27:45 espie Exp $ */
/* $NetBSD: mdef.h,v 1.14 2011/03/05 16:37:50 christos Exp $ */
/* $NetBSD: mdef.h,v 1.15 2013/10/18 20:19:36 christos Exp $ */
/*
* Copyright (c) 1989, 1993
@ -127,8 +127,12 @@
#define ALL 1
#define TOP 0
#define TRUE 1
#define FALSE 0
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
#define cycle for(;;)
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: defs.h,v 1.9 2012/03/06 16:55:18 mbalmer Exp $ */
/* $NetBSD: defs.h,v 1.10 2013/10/18 20:19:36 christos Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@ -50,10 +50,12 @@
#define INIT(x)
#endif
/* some constants */
#define TRUE 1
#define FALSE 0
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
/* Global variables .. to be defined in main.c, extern elsewhere. */
EXTERN char *prog_name;

View File

@ -1,4 +1,4 @@
/* $NetBSD: defs.h,v 1.5 2012/03/06 16:26:01 mbalmer Exp $ */
/* $NetBSD: defs.h,v 1.6 2013/10/18 20:19:36 christos Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@ -49,9 +49,12 @@
#define INIT(x)
#endif
/* some constants */
#define TRUE 1
#define FALSE 0
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
/* Global variables .. to be defined in main.c, extern elsewhere. */