Skip to content

Commit dc28653

Browse files
committed
Move FB_API_VER check at the top
1 parent 1484d75 commit dc28653

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pdo_firebird_utils.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
+----------------------------------------------------------------------+
1515
*/
1616

17+
#if FB_API_VER >= 40
18+
1719
#include "pdo_firebird_utils.h"
1820
#include <firebird/Interface.h>
1921
#include <cstring>
@@ -40,7 +42,6 @@ extern "C" ISC_DATE fb_encode_date(unsigned year, unsigned month, unsigned day)
4042
return util->encodeDate(year, month, day);
4143
}
4244

43-
#if FB_API_VER >= 40
4445
static void fb_copy_status(const ISC_STATUS* from, ISC_STATUS* to, size_t maxLength)
4546
{
4647
for(size_t i=0; i < maxLength; ++i) {

0 commit comments

Comments
 (0)