mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-22 11:13:07 +00:00
5ae0dea3e8
Commit 21726a7
"Add assert() for debug assertions" caused build
warnings for many systems:
In file included from bedbug.c:6:
/home/wd/git/u-boot/work/include/bedbug/bedbug.h:24:1: warning: "assert" redefined
In file included from bedbug.c:3:
/home/wd/git/u-boot/work/include/common.h:144:1: warning: this is the location of the previous definition
In file included from cmd_bedbug.c:10:
/home/wd/git/u-boot/work/include/bedbug/bedbug.h:24:1: warning: "assert" redefined
In file included from cmd_bedbug.c:5:
/home/wd/git/u-boot/work/include/common.h:144:1: warning: this is the location of the previous definition
Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Acked-by: Simon Glass <sjg@chromium.org>
40 lines
900 B
C
40 lines
900 B
C
/* $Id$ */
|
|
|
|
#ifndef _BEDBUG_H
|
|
#define _BEDBUG_H
|
|
|
|
#ifndef NULL
|
|
#define NULL 0
|
|
#endif
|
|
|
|
#define _USE_PROTOTYPES
|
|
|
|
#ifndef isblank
|
|
#define isblank(c) isspace((int)(c))
|
|
#endif
|
|
|
|
#ifndef __P
|
|
#if defined(_USE_PROTOTYPES) && (defined(__STDC__) || defined(__cplusplus))
|
|
#define __P(protos) protos /* full-blown ANSI C */
|
|
#else
|
|
#define __P(protos) () /* traditional C preprocessor */
|
|
#endif
|
|
#endif
|
|
|
|
#endif /* _BEDBUG_H */
|
|
|
|
|
|
/*
|
|
* Copyright (c) 2001 William L. Pitts
|
|
* All rights reserved.
|
|
*
|
|
* Redistribution and use in source and binary forms are freely
|
|
* permitted provided that the above copyright notice and this
|
|
* paragraph and the following disclaimer are duplicated in all
|
|
* such forms.
|
|
*
|
|
* This software is provided "AS IS" and without any express or
|
|
* implied warranties, including, without limitation, the implied
|
|
* warranties of merchantability and fitness for a particular
|
|
* purpose.
|
|
*/
|