mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-09-21 11:39:57 +03:00
Use stdbool for glfw boolean types
This commit is contained in:
parent
84caf787aa
commit
9a2ff9e419
6
glfw/glfw3.h
vendored
6
glfw/glfw3.h
vendored
@ -133,6 +133,8 @@ extern "C" {
|
||||
*/
|
||||
#include <stdint.h>
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
/* Include the chosen OpenGL or OpenGL ES headers.
|
||||
*/
|
||||
#if defined(GLFW_INCLUDE_ES1)
|
||||
@ -277,14 +279,14 @@ extern "C" {
|
||||
* semantic sugar for the number 1. You can also use `1` or `true` or `_True`
|
||||
* or `GL_TRUE` or whatever you want.
|
||||
*/
|
||||
#define GLFW_TRUE 1
|
||||
#define GLFW_TRUE true
|
||||
/*! @brief Zero.
|
||||
*
|
||||
* Zero. Seriously. You don't _need_ to use this symbol in your code. It's
|
||||
* semantic sugar for the number 0. You can also use `0` or `false` or
|
||||
* `_False` or `GL_FALSE` or whatever you want.
|
||||
*/
|
||||
#define GLFW_FALSE 0
|
||||
#define GLFW_FALSE false
|
||||
/*! @} */
|
||||
|
||||
/*! @name Key and button actions
|
||||
|
2
glfw/internal.h
vendored
2
glfw/internal.h
vendored
@ -60,7 +60,7 @@
|
||||
|
||||
#define _GLFW_MESSAGE_SIZE 1024
|
||||
|
||||
typedef int GLFWbool;
|
||||
typedef bool GLFWbool;
|
||||
typedef unsigned long long GLFWid;
|
||||
|
||||
typedef struct _GLFWerror _GLFWerror;
|
||||
|
Loading…
Reference in New Issue
Block a user