diff include/SDL_version.h @ 2982:b64c1d23039b

Make the current revision number available
author Sam Lantinga <slouken@libsdl.org>
date Sun, 04 Jan 2009 05:08:12 +0000
parents 99210400e8b9
children 972a69e47cd9
line wrap: on
line diff
--- a/include/SDL_version.h	Sat Jan 03 21:01:02 2009 +0000
+++ b/include/SDL_version.h	Sun Jan 04 05:08:12 2009 +0000
@@ -30,6 +30,7 @@
 #define _SDL_version_h
 
 #include "SDL_stdinc.h"
+#include "SDL_revision.h"
 
 #include "begin_code.h"
 /* Set up for C function definitions, even when using C++ */
@@ -131,6 +132,12 @@
  */
 extern DECLSPEC void SDLCALL SDL_GetVersion(SDL_version * ver);
 
+/**
+ * \fn int SDL_GetRevision()
+ * \brief Get the code revision of SDL that is linked against your program.
+ */
+extern DECLSPEC int SDLCALL SDL_GetRevision();
+
 /* Ends C function definitions when using C++ */
 #ifdef __cplusplus
 /* *INDENT-OFF* */