1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-08 14:02:17 +03:00

CONC-385 Remove some irrelevant cmake system checks

This commit is contained in:
Vladislav Vaintroub
2019-01-11 19:16:27 +01:00
parent 2fcebabbda
commit eb28bf1dad
10 changed files with 7 additions and 930 deletions

View File

@@ -21,10 +21,6 @@
#include "mariadb_ctype.h"
#include <ma_string.h>
#include <mariadb_ctype.h>
#ifdef HAVE_GETRUSAGE
#include <sys/resource.h>
/* extern int getrusage(int, struct rusage *); */
#endif
#include <signal.h>
#ifdef _WIN32
#ifdef _MSC_VER
@@ -66,30 +62,6 @@ void ma_end(int infoflag __attribute__((unused)))
} /* ma_end */
#ifdef _WIN32
/*
This code is specially for running MySQL, but it should work in
other cases too.
Inizializzazione delle variabili d'ambiente per Win a 32 bit.
Vengono inserite nelle variabili d'ambiente (utilizzando cosi'
le funzioni getenv e putenv) i valori presenti nelle chiavi
del file di registro:
HKEY_LOCAL_MACHINE\software\MySQL
Se la kiave non esiste nonn inserisce nessun valore
*/
/* Crea la stringa d'ambiente */
void setEnvString(char *ret, const char *name, const char *value)
{
sprintf(ret, "%s=%s", name, value);
return ;
}
static my_bool my_win_init()
{
WORD VersionRequested;