IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42713


Ignore:
Timestamp:
Aug 3, 2024, 1:01:10 PM (2 years ago)
Author:
eugene
Message:

do not include mysql_com.h (not needed explicitly even in Gentoo; causes a warning in Manjaro); use my_bool for mariadb, not mysql > 8.0.1; fix buffer size error

Location:
branches/eam_branches/ipp-20230313/psLib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20230313/psLib/src/db/psDB.c

    r42637 r42713  
    4444#include <regex.h>
    4545#include <mysql.h>
    46 #include <mysql_com.h> // enum_field_types
    47 
     46// #include <mysql_com.h> // enum_field_types
    4847#include "psDB.h"
    4948#include "psMemory.h"
     
    5554#include "psMetadataConfig.h"
    5655
    57 
    58 # if (MYSQL_VERSION_ID >= 80000)
    59     # define MYSQL_BOOL bool
     56/* my_bool was removed from mysql at version 8.0.1, but not from mariadb */
     57# if (MYSQL_VERSION_ID >= 80100) && !defined MARIADB_VERSION_ID
     58  # define MYSQL_BOOL bool
    6059# else
    61     # define MYSQL_BOOL my_bool
     60  # define MYSQL_BOOL my_bool
    6261# endif
    6362
  • branches/eam_branches/ipp-20230313/psLib/test/imageops/convolutionBench.c

    r23259 r42713  
    5656    }
    5757
    58     char size[16];
     58    char size[32];
    5959    sprintf(size, "%dx%d", imageCols, imageRows);
    6060    printf("%15s", size);
Note: See TracChangeset for help on using the changeset viewer.