File: arch.h

package info (click to toggle)
komposter 0%2Bgit20201216%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,716 kB
  • sloc: ansic: 15,586; sh: 4,176; asm: 642; makefile: 72
file content (39 lines) | stat: -rw-r--r-- 717 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
 * Komposter
 *
 * Copyright (c) 2010 Noora Halme et al. (see AUTHORS)
 *
 * This code is licensed under the GNU General Public
 * License version 2. See LICENSE for full text.
 *
 * Architecture-specific include files
 *
 */


// dword size depending on platform
#if __x86_64__
  #define u32 unsigned int
  #define s32 int
#else
  #define u32 unsigned long
  #define s32 long
#endif


// Apple Mac OS X
#ifdef __APPLE__
  #include <GLUT/glut.h>
  #include <OpenAL/al.h>
  #include <OpenAL/alc.h>
#else // BSD, Linux, etc.
  // to define functions past OpenGL 1.3
  #define GL_GLEXT_PROTOTYPES

  #include <GL/gl.h>
  #include <GL/glext.h>
  #include <GL/glut.h>
  #include <AL/al.h>
  #include <AL/alc.h>
#endif