15
15
16
16
#include "dbdimp.h"
17
17
18
+ #ifdef HAVE_GET_CHARSET_NUMBER
19
+ /* Available only in some clients and declared in header file my_sys.h which cannot be included */
20
+ unsigned int get_charset_number (const char * cs_name , unsigned int cs_flags );
21
+ #endif
22
+
23
+ #if defined(__GNUC__ ) && ((__GNUC__ == 4 && __GNUC_MINOR__ >= 1 ) || (__GNUC__ > 4 ))
24
+ /* Do not export non-static functions from driver library */
25
+ #pragma GCC visibility push(hidden)
26
+ #endif
27
+
18
28
#define ASYNC_CHECK_RETURN (h , value )\
19
29
if(imp_dbh->async_query_in_flight) {\
20
30
mariadb_dr_do_error(h, CR_UNKNOWN_ERROR, "Calling a synchronous function on an asynchronous handle", "HY000");\
@@ -513,7 +523,7 @@ PERL_STATIC_INLINE bool mysql_charsetnr_is_utf8(unsigned int id)
513
523
/*
514
524
count embedded options
515
525
*/
516
- int count_embedded_options (char * st )
526
+ static int count_embedded_options (char * st )
517
527
{
518
528
int rc ;
519
529
char c ;
@@ -538,7 +548,7 @@ int count_embedded_options(char *st)
538
548
/*
539
549
Free embedded options
540
550
*/
541
- int free_embedded_options (char * * options_list , int options_count )
551
+ static int free_embedded_options (char * * options_list , int options_count )
542
552
{
543
553
int i ;
544
554
@@ -556,7 +566,7 @@ int free_embedded_options(char ** options_list, int options_count)
556
566
Print out embedded option settings
557
567
558
568
*/
559
- int print_embedded_options (PerlIO * stream , char * * options_list , int options_count )
569
+ static int print_embedded_options (PerlIO * stream , char * * options_list , int options_count )
560
570
{
561
571
int i ;
562
572
@@ -573,7 +583,7 @@ int print_embedded_options(PerlIO *stream, char ** options_list, int options_cou
573
583
/*
574
584
575
585
*/
576
- char * * fill_out_embedded_options (char * options ,
586
+ static char * * fill_out_embedded_options (char * options ,
577
587
int options_type ,
578
588
STRLEN slen , int cnt )
579
589
{
@@ -1364,11 +1374,6 @@ static void error_no_connection(SV *h, const char *msg)
1364
1374
mariadb_dr_do_error (h , CR_CONNECTION_ERROR , msg , "HY000" );
1365
1375
}
1366
1376
1367
- #ifdef HAVE_GET_CHARSET_NUMBER
1368
- /* Available only in some clients and declared in header file my_sys.h which cannot be included */
1369
- unsigned int get_charset_number (const char * cs_name , unsigned int cs_flags );
1370
- #endif
1371
-
1372
1377
/***************************************************************************
1373
1378
*
1374
1379
* Name: mariadb_dr_connect
0 commit comments