It appears Solaris's cc is ignoring the signedness of bitfield types.
[xiph/unicode.git] / theora / tests / tests.h
blobbf053ebe5dbac48921bc961528b76f458f7c14dc
1 /********************************************************************
2 * *
3 * THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. *
4 * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
5 * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
6 * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
7 * *
8 * THE Theora SOURCE CODE IS COPYRIGHT (C) 2002-2007 *
9 * by the Xiph.Org Foundation http://www.xiph.org/ *
10 * *
11 ********************************************************************
13 function: common test utilities
14 last mod: $Id$
16 ********************************************************************/
18 #include "config.h"
20 #include <stdio.h>
21 #include <stdlib.h>
23 #define INFO(str) \
24 { printf ("---- %s ...\n", (str)); }
26 #define WARN(str) \
27 { printf ("%s:%d: warning: %s\n", __FILE__, __LINE__, (str)); }
29 #define FAIL(str) \
30 { printf ("%s:%d: %s\n", __FILE__, __LINE__, (str)); exit(1); }
32 #undef MIN
33 #define MIN(a,b) ((a)<(b)?(a):(b))