include inttypes.h in Solaris instead of stdint.h and let the cube

example request lest extravagant OpenGL context attributes.
pull/26/head
John Tsiombikas 2024-11-27 05:32:29 +02:00
rodzic d98eb8c927
commit f73f821b82
2 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -94,10 +94,10 @@ int create_gfx(int xsz, int ysz)
int attr[] = {
GLX_RGBA, GLX_DOUBLEBUFFER,
GLX_RED_SIZE, 8,
GLX_GREEN_SIZE, 8,
GLX_BLUE_SIZE, 8,
GLX_DEPTH_SIZE, 24,
GLX_RED_SIZE, 1,
GLX_GREEN_SIZE, 1,
GLX_BLUE_SIZE, 1,
GLX_DEPTH_SIZE, 16,
None
};

Wyświetl plik

@ -1,7 +1,7 @@
#ifndef PROTO_H_
#define PROTO_H_
#ifdef __sgi
#if defined(__sgi) || defined(__sun)
#include <inttypes.h>
#else
#include <stdint.h>