mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-03-10 00:20:54 +08:00
Fix __attribute__ syntax
This commit is contained in:
@@ -208,7 +208,7 @@ static SQLRETURN SQL_API _SQLDriverConnect(
|
|||||||
SQLSMALLINT *pcbConnStrOut,
|
SQLSMALLINT *pcbConnStrOut,
|
||||||
SQLUSMALLINT fDriverCompletion)
|
SQLUSMALLINT fDriverCompletion)
|
||||||
#ifdef HAVE_ATTRIBUTE_ALIAS
|
#ifdef HAVE_ATTRIBUTE_ALIAS
|
||||||
__attribute__((used));
|
__attribute__((used))
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
char* dsn = NULL;
|
char* dsn = NULL;
|
||||||
@@ -675,7 +675,7 @@ static SQLRETURN SQL_API _SQLConnect(
|
|||||||
SQLCHAR *szAuthStr,
|
SQLCHAR *szAuthStr,
|
||||||
SQLSMALLINT cbAuthStr)
|
SQLSMALLINT cbAuthStr)
|
||||||
#ifdef HAVE_ATTRIBUTE_ALIAS
|
#ifdef HAVE_ATTRIBUTE_ALIAS
|
||||||
__attribute__((used));
|
__attribute__((used))
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
char* database = NULL;
|
char* database = NULL;
|
||||||
@@ -758,7 +758,7 @@ static SQLRETURN SQL_API _SQLDescribeCol(
|
|||||||
SQLSMALLINT *pibScale,
|
SQLSMALLINT *pibScale,
|
||||||
SQLSMALLINT *pfNullable)
|
SQLSMALLINT *pfNullable)
|
||||||
#ifdef HAVE_ATTRIBUTE_ALIAS
|
#ifdef HAVE_ATTRIBUTE_ALIAS
|
||||||
__attribute__((used));
|
__attribute__((used))
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
@@ -868,7 +868,7 @@ static SQLRETURN SQL_API _SQLColAttributes(
|
|||||||
SQLSMALLINT *pcbDesc,
|
SQLSMALLINT *pcbDesc,
|
||||||
SQLLEN *pfDesc)
|
SQLLEN *pfDesc)
|
||||||
#ifdef HAVE_ATTRIBUTE_ALIAS
|
#ifdef HAVE_ATTRIBUTE_ALIAS
|
||||||
__attribute__((used));
|
__attribute__((used))
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
@@ -1031,7 +1031,7 @@ static SQLRETURN SQL_API _SQLError(
|
|||||||
SQLSMALLINT cbErrorMsgMax,
|
SQLSMALLINT cbErrorMsgMax,
|
||||||
SQLSMALLINT *pcbErrorMsg)
|
SQLSMALLINT *pcbErrorMsg)
|
||||||
#ifdef HAVE_ATTRIBUTE_ALIAS
|
#ifdef HAVE_ATTRIBUTE_ALIAS
|
||||||
__attribute__((used));
|
__attribute__((used))
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
SQLRETURN result = SQL_NO_DATA_FOUND;
|
SQLRETURN result = SQL_NO_DATA_FOUND;
|
||||||
@@ -1126,7 +1126,7 @@ static SQLRETURN SQL_API _SQLExecDirect(
|
|||||||
SQLCHAR *szSqlStr,
|
SQLCHAR *szSqlStr,
|
||||||
SQLINTEGER cbSqlStr)
|
SQLINTEGER cbSqlStr)
|
||||||
#ifdef HAVE_ATTRIBUTE_ALIAS
|
#ifdef HAVE_ATTRIBUTE_ALIAS
|
||||||
__attribute__((used));
|
__attribute__((used))
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
_SQLPrepare(hstmt, szSqlStr, cbSqlStr);
|
_SQLPrepare(hstmt, szSqlStr, cbSqlStr);
|
||||||
@@ -1455,7 +1455,7 @@ static SQLRETURN SQL_API _SQLColumns(
|
|||||||
SQLCHAR *szColumnName,
|
SQLCHAR *szColumnName,
|
||||||
SQLSMALLINT cbColumnName)
|
SQLSMALLINT cbColumnName)
|
||||||
#ifdef HAVE_ATTRIBUTE_ALIAS
|
#ifdef HAVE_ATTRIBUTE_ALIAS
|
||||||
__attribute__((used));
|
__attribute__((used))
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
struct _hstmt *stmt = (struct _hstmt *) hstmt;
|
struct _hstmt *stmt = (struct _hstmt *) hstmt;
|
||||||
@@ -1603,7 +1603,7 @@ static SQLRETURN SQL_API _SQLGetData(
|
|||||||
SQLLEN cbValueMax,
|
SQLLEN cbValueMax,
|
||||||
SQLLEN *pcbValue)
|
SQLLEN *pcbValue)
|
||||||
#ifdef HAVE_ATTRIBUTE_ALIAS
|
#ifdef HAVE_ATTRIBUTE_ALIAS
|
||||||
__attribute__((used));
|
__attribute__((used))
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
struct _hstmt *stmt;
|
struct _hstmt *stmt;
|
||||||
@@ -2063,7 +2063,7 @@ static SQLRETURN SQL_API _SQLGetInfo(
|
|||||||
SQLSMALLINT cbInfoValueMax,
|
SQLSMALLINT cbInfoValueMax,
|
||||||
SQLSMALLINT *pcbInfoValue)
|
SQLSMALLINT *pcbInfoValue)
|
||||||
#ifdef HAVE_ATTRIBUTE_ALIAS
|
#ifdef HAVE_ATTRIBUTE_ALIAS
|
||||||
__attribute__((used));
|
__attribute__((used))
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
TRACE("_SQLGetInfo");
|
TRACE("_SQLGetInfo");
|
||||||
|
|||||||
Reference in New Issue
Block a user