Replace GLFWuint64 with uint64_t

C99 stdint.h is provided by VS 2010 and later.  GLFW has not provided
testing or binaries for VS 2008 for several releases.

For earlier versions of VS there are third-party alternatives:

https://msinttypes.googlecode.com/svn/trunk/stdint.h
http://www.azillionmonkeys.com/qed/pstdint.h

This change does not affect the ABI.
This commit is contained in:
Camilla Berglund
2016-03-23 10:09:07 +01:00
parent 5eb2e83c82
commit 5661d03be8
12 changed files with 25 additions and 38 deletions

View File

@@ -120,6 +120,7 @@ extern "C" {
* Include it unconditionally to avoid surprising side-effects.
*/
#include <stddef.h>
#include <stdint.h>
/* Include the chosen client API headers.
*/
@@ -728,19 +729,6 @@ extern "C" {
* GLFW API types
*************************************************************************/
/*! @brief 64-bit unsigned integer.
*
* 64-bit unsigned integer.
*
* @since Added in version 3.2.
*/
#if defined(_MSC_VER) && (_MSC_VER < 1600)
typedef unsigned __int64 GLFWuint64;
#else
#include <stdint.h>
typedef uint64_t GLFWuint64;
#endif
/*! @brief Client API function pointer type.
*
* Generic function pointer used for returning client API function pointers
@@ -3735,7 +3723,7 @@ GLFWAPI void glfwSetTime(double time);
*
* @ingroup input
*/
GLFWAPI GLFWuint64 glfwGetTimerValue(void);
GLFWAPI uint64_t glfwGetTimerValue(void);
/*! @brief Returns the frequency, in Hz, of the raw timer.
*
@@ -3755,7 +3743,7 @@ GLFWAPI GLFWuint64 glfwGetTimerValue(void);
*
* @ingroup input
*/
GLFWAPI GLFWuint64 glfwGetTimerFrequency(void);
GLFWAPI uint64_t glfwGetTimerFrequency(void);
/*! @brief Makes the context of the specified window current for the calling
* thread.