From 5647bce3668b46c5c74349520cefb2a791125e95 Mon Sep 17 00:00:00 2001 From: Timothy Smith Date: Wed, 2 Jul 2008 16:37:29 +0200 Subject: Fix "C++ code in C file" syntax error in mysys/default.c --- mysys/default.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mysys/default.c') diff --git a/mysys/default.c b/mysys/default.c index eb7721acaed..bf32261129b 100644 --- a/mysys/default.c +++ b/mysys/default.c @@ -1015,10 +1015,12 @@ static uint my_get_system_windows_directory(char *buffer, uint size) static const char *my_get_module_parent(char *buf, size_t size) { + char *last= NULL; + char *end; if (!GetModuleFileName(NULL, buf, size)) return NULL; + end= strend(buf); - char *last= NULL, *end= strend(buf); /* Look for the second-to-last \ in the filename, but hang on to a pointer after the last \ in case we're in the root of -- cgit v1.2.1