Commit 5647bce3 authored by Timothy Smith's avatar Timothy Smith

Fix "C++ code in C file" syntax error in mysys/default.c

parent 9393ae3d
...@@ -1015,10 +1015,12 @@ static uint my_get_system_windows_directory(char *buffer, uint size) ...@@ -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) static const char *my_get_module_parent(char *buf, size_t size)
{ {
char *last= NULL;
char *end;
if (!GetModuleFileName(NULL, buf, size)) if (!GetModuleFileName(NULL, buf, size))
return NULL; return NULL;
end= strend(buf);
char *last= NULL, *end= strend(buf);
/* /*
Look for the second-to-last \ in the filename, but hang on 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 to a pointer after the last \ in case we're in the root of
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment