mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Compile 10.0 on Windows
This commit is contained in:
@ -27,8 +27,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "../sql/sql_bootstrap.h"
|
||||
|
||||
/*
|
||||
This is an internal tool used during the build process only,
|
||||
- do not make a library just for this,
|
||||
@ -80,12 +78,6 @@ static void print_query(FILE *out, const char *query)
|
||||
fprintf(out, "\"");
|
||||
while (*ptr)
|
||||
{
|
||||
if (column >= 120)
|
||||
{
|
||||
/* Wrap to the next line, tabulated. */
|
||||
fprintf(out, "\"\n \"");
|
||||
column= 2;
|
||||
}
|
||||
switch(*ptr)
|
||||
{
|
||||
case '\n':
|
||||
@ -103,6 +95,9 @@ static void print_query(FILE *out, const char *query)
|
||||
fprintf(out, "\\\"");
|
||||
column++;
|
||||
break;
|
||||
case '\\':
|
||||
fprintf(out, "\\\\");
|
||||
break;
|
||||
default:
|
||||
putc(*ptr, out);
|
||||
column++;
|
||||
@ -135,6 +130,7 @@ int main(int argc, char *argv[])
|
||||
fprintf(out, " Do not edit this file, it is automatically generated from:\n");
|
||||
fprintf(out, " <%s>\n", infile_name);
|
||||
fprintf(out, "*/\n");
|
||||
fprintf(out, "#include <stdlib.h>\n"); /* NULL */
|
||||
fprintf(out, "const char* %s[]={\n", struct_name);
|
||||
|
||||
for ( ; ; )
|
||||
|
Reference in New Issue
Block a user