diff options
Diffstat (limited to 'glgrav.cpp')
-rw-r--r-- | glgrav.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -31,6 +31,7 @@ static const char id[]="$Id$"; #include <cstdarg> #include <ctime> +#include <cstring> static Config config; static vector<Mass> mass; @@ -114,7 +115,7 @@ static void HandleCollision(Config::Collide collide, vector<bool>& del,vector<Mass>& mv, Mass& m1, Mass& m2, int idx1, int idx2); static void SetOption(int opt, string text, bool flag); -static void GLPrint(char *fmt,...); +static void GLPrint(const char *fmt,...); int main(int argc, char *argv[]) @@ -934,7 +935,7 @@ static void Update(void) } -static void GLPrint(char *fmt,...) +static void GLPrint(const char *fmt,...) { char s[256]; va_list va; |