mirror of
https://github.com/glfw/glfw.git
synced 2026-02-17 21:12:34 +01:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user