include: Remove 'l' modifier from numeric constants in sql.h

Michael Stefaniuc mstefani at redhat.de
Tue Oct 25 17:39:03 CDT 2011


---
 include/sql.h |   56 ++++++++++++++++++++++++++++----------------------------
 1 files changed, 28 insertions(+), 28 deletions(-)

diff --git a/include/sql.h b/include/sql.h
index 6b5218a..9123754 100644
--- a/include/sql.h
+++ b/include/sql.h
@@ -45,7 +45,7 @@ extern "C" {
 #define SQL_SUCCEEDED(rc) (((rc)&(~1))==0)
 
 #define SQL_NTS                   (-3)
-#define SQL_NTSL                  (-3L)
+#define SQL_NTSL                  (-3)
 
 #define SQL_MAX_MESSAGE_LENGTH   512
 
@@ -240,7 +240,7 @@ extern "C" {
 #endif
 
 #if (ODBCVER >= 0x0300)
-#define SQL_NULL_HANDLE     0L
+#define SQL_NULL_HANDLE     0
 #endif
 
 #define SQL_SCOPE_CURROW    0
@@ -423,12 +423,12 @@ extern "C" {
 #endif
 
 #if (ODBCVER >= 0x0200)
-#define SQL_AT_ADD_COLUMN                   	0x00000001L
-#define SQL_AT_DROP_COLUMN                  	0x00000002L
+#define SQL_AT_ADD_COLUMN                   0x00000001
+#define SQL_AT_DROP_COLUMN                  0x00000002
 #endif
 
 #if (ODBCVER >= 0x0300)
-#define SQL_AT_ADD_CONSTRAINT               	0x00000008L
+#define SQL_AT_ADD_CONSTRAINT               0x00000008
 
 #endif  /* ODBCVER >= 0x0300 */
 
@@ -443,15 +443,15 @@ extern "C" {
 #define SQL_CB_CLOSE                        1
 #define SQL_CB_PRESERVE                     2
 
-#define SQL_FD_FETCH_NEXT                   0x00000001L
-#define SQL_FD_FETCH_FIRST                  0x00000002L
-#define SQL_FD_FETCH_LAST                   0x00000004L
-#define SQL_FD_FETCH_PRIOR                  0x00000008L
-#define SQL_FD_FETCH_ABSOLUTE               0x00000010L
-#define SQL_FD_FETCH_RELATIVE               0x00000020L
+#define SQL_FD_FETCH_NEXT                   0x00000001
+#define SQL_FD_FETCH_FIRST                  0x00000002
+#define SQL_FD_FETCH_LAST                   0x00000004
+#define SQL_FD_FETCH_PRIOR                  0x00000008
+#define SQL_FD_FETCH_ABSOLUTE               0x00000010
+#define SQL_FD_FETCH_RELATIVE               0x00000020
 
-#define SQL_GD_ANY_COLUMN                   0x00000001L
-#define SQL_GD_ANY_ORDER                    0x00000002L
+#define SQL_GD_ANY_COLUMN                   0x00000001
+#define SQL_GD_ANY_ORDER                    0x00000002
 
 #define SQL_IC_UPPER                        1
 #define SQL_IC_LOWER                        2
@@ -459,19 +459,19 @@ extern "C" {
 #define SQL_IC_MIXED                        4
 
 #if (ODBCVER >= 0x0201)
-#define SQL_OJ_LEFT                         0x00000001L
-#define SQL_OJ_RIGHT                        0x00000002L
-#define SQL_OJ_FULL                         0x00000004L
-#define SQL_OJ_NESTED                       0x00000008L
-#define SQL_OJ_NOT_ORDERED                  0x00000010L
-#define SQL_OJ_INNER                        0x00000020L
-#define SQL_OJ_ALL_COMPARISON_OPS           0x00000040L
+#define SQL_OJ_LEFT                         0x00000001
+#define SQL_OJ_RIGHT                        0x00000002
+#define SQL_OJ_FULL                         0x00000004
+#define SQL_OJ_NESTED                       0x00000008
+#define SQL_OJ_NOT_ORDERED                  0x00000010
+#define SQL_OJ_INNER                        0x00000020
+#define SQL_OJ_ALL_COMPARISON_OPS           0x00000040
 #endif
 
-#define SQL_SCCO_READ_ONLY                  0x00000001L
-#define SQL_SCCO_LOCK                       0x00000002L
-#define SQL_SCCO_OPT_ROWVER                 0x00000004L
-#define SQL_SCCO_OPT_VALUES                 0x00000008L
+#define SQL_SCCO_READ_ONLY                  0x00000001
+#define SQL_SCCO_LOCK                       0x00000002
+#define SQL_SCCO_OPT_ROWVER                 0x00000004
+#define SQL_SCCO_OPT_VALUES                 0x00000008
 
 #define SQL_TC_NONE                         0
 #define SQL_TC_DML                          1
@@ -479,13 +479,13 @@ extern "C" {
 #define SQL_TC_DDL_COMMIT                   3
 #define SQL_TC_DDL_IGNORE                   4
 
-#define SQL_TXN_READ_UNCOMMITTED            0x00000001L
+#define SQL_TXN_READ_UNCOMMITTED            0x00000001
 #define SQL_TRANSACTION_READ_UNCOMMITTED	SQL_TXN_READ_UNCOMMITTED
-#define SQL_TXN_READ_COMMITTED              0x00000002L
+#define SQL_TXN_READ_COMMITTED              0x00000002
 #define SQL_TRANSACTION_READ_COMMITTED		SQL_TXN_READ_COMMITTED
-#define SQL_TXN_REPEATABLE_READ             0x00000004L
+#define SQL_TXN_REPEATABLE_READ             0x00000004
 #define SQL_TRANSACTION_REPEATABLE_READ		SQL_TXN_REPEATABLE_READ
-#define SQL_TXN_SERIALIZABLE                0x00000008L
+#define SQL_TXN_SERIALIZABLE                0x00000008
 #define SQL_TRANSACTION_SERIALIZABLE		SQL_TXN_SERIALIZABLE
 
 #define SQL_NC_HIGH                         0
-- 
1.7.6.4



More information about the wine-patches mailing list