Recognizes if input is ogg or not.
[xiph.git] / vorbis-tools / ogg123 / compat.h
blobb414dcaa1afb2b9ab8b2a549609b266d20b93086
1 /********************************************************************
2 * *
3 * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
4 * USE, DISTRIBUTION AND REPRODUCTION OF THIS SOURCE IS GOVERNED BY *
5 * THE GNU PUBLIC LICENSE 2, WHICH IS INCLUDED WITH THIS SOURCE. *
6 * PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
7 * *
8 * THE Ogg123 SOURCE CODE IS (C) COPYRIGHT 2000-2001 *
9 * by Stan Seibert <volsung@xiph.org> AND OTHER CONTRIBUTORS *
10 * http://www.xiph.org/ *
11 * *
12 ********************************************************************
14 last mod: $Id: compat.h,v 1.2 2001/12/19 02:52:53 volsung Exp $
16 ********************************************************************/
18 #ifndef __COMPAT_H__
19 #define __COMPAT_H__
21 #ifdef HAVE_CONFIG_H
22 #include "config.h"
23 #endif
25 #ifdef __sun
26 #include <alloca.h>
27 #endif
29 /* SunOS 4 does on_exit() and everything else does atexit() */
30 #ifdef HAVE_ATEXIT
31 #define ATEXIT(x) (atexit(x))
32 #else
33 #ifdef HAVE_ON_EXIT
34 #define ATEXIT(x) (on_exit( (void (*)(int, void*))(x) , NULL)
35 #else
36 #define ATEXIT(x)
37 #warning "Neither atexit() nor on_exit() is present. Bad things may happen when the application terminates."
38 #endif
39 #endif
41 #endif