0200d5ba018122793bd73894bdb0afb8fddde651
[cparser] / adt / fourcc.h
1 /*
2  * This file is part of cparser.
3  * Copyright (C) 2007-2008 Matthias Braun <matze@braunis.de>
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
18  * 02111-1307, USA.
19  */
20
21 /*
22  * Project:     libFIRM
23  * File name:   ir/adt/fourcc.h
24  * Purpose:     define the famous infame FOURCC macro.
25  * Author:
26  * Modified by:
27  * Created:     02.01.2004
28  * CVS-ID:      $Id$
29  * Copyright:   (C) 2004 University of Karlsruhe
30  * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
31  */
32 #ifndef _FOURCC_H
33 #define _FOURCC_H
34
35 /** define a readable fourcc code */
36 #define FOURCC(a,b,c,d)         ((a) | ((b) << 8) | ((c) << 16) | ((d) << 24))
37
38 #endif /* _FOURCC_H */