__predict_false() isn't defined if we aren't netbsd, stub out.

This commit is contained in:
dsl 2009-01-17 13:55:42 +00:00
parent 462d090d0f
commit 18e81da746
1 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: buf.h,v 1.15 2009/01/17 13:29:37 dsl Exp $ */
/* $NetBSD: buf.h,v 1.16 2009/01/17 13:55:42 dsl Exp $ */
/*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@ -88,6 +88,11 @@ typedef struct Buffer {
Byte *buffer; /* The buffer itself (zero terminated) */
} Buffer;
/* If we aren't on netbsd, __predict_false() might not be defined. */
#ifndef __predict_false
#define __predict_false(x) (x)
#endif
/* Buf_AddByte adds a single byte to a buffer. */
#define Buf_AddByte(bp, byte) do { \
int _count = ++(bp)->count; \