@@ -116,15 +116,15 @@ class Statement
116116 */
117117 void bind (const int aIndex, const unsigned aValue);
118118
119- #if (LONG_MAX == INT_MAX) // sizeof(long)==4 means the data model of the system is ILP32 (32bits OS or Windows 64bits )
119+ #if (LONG_MAX == INT_MAX) // 4 bytes "long" type means the data model is ILP32 or LLP64 (Win64 Visual C++ and MinGW )
120120 /* *
121121 * @brief Bind a 32bits long value to a parameter "?", "?NNN", ":VVV", "@VVV" or "$VVV" in the SQL prepared statement (aIndex >= 1)
122122 */
123123 void bind (const int aIndex, const long aValue)
124124 {
125125 bind (aIndex, static_cast <int >(aValue));
126126 }
127- #else // sizeof(long)==8 means the data model of the system is LLP64 (64bits Linux )
127+ #else // 8 bytes "long" type means the data model is LP64 (Most Unix-like, Windows when using Cygwin; z/OS )
128128 /* *
129129 * @brief Bind a 64bits long value to a parameter "?", "?NNN", ":VVV", "@VVV" or "$VVV" in the SQL prepared statement (aIndex >= 1)
130130 */
@@ -198,15 +198,15 @@ class Statement
198198 */
199199 void bind (const char * apName, const unsigned aValue);
200200
201- #if (LONG_MAX == INT_MAX) // sizeof(long)==4 means the data model of the system is ILP32 (32bits OS or Windows 64bits )
201+ #if (LONG_MAX == INT_MAX) // 4 bytes "long" type means the data model is ILP32 or LLP64 (Win64 Visual C++ and MinGW )
202202 /* *
203203 * @brief Bind a 32bits long value to a parameter "?", "?NNN", ":VVV", "@VVV" or "$VVV" in the SQL prepared statement (aIndex >= 1)
204204 */
205205 void bind (const char * apName, const long aValue)
206206 {
207207 bind (apName, static_cast <int >(aValue));
208208 }
209- #else // sizeof(long)==8 means the data model of the system is LLP64 (64bits Linux )
209+ #else // 8 bytes "long" type means the data model is LP64 (Most Unix-like, Windows when using Cygwin; z/OS )
210210 /* *
211211 * @brief Bind a 64bits long value to a parameter "?", "?NNN", ":VVV", "@VVV" or "$VVV" in the SQL prepared statement (aIndex >= 1)
212212 */
@@ -286,15 +286,15 @@ class Statement
286286 bind (aName.c_str (), aValue);
287287 }
288288
289- #if (LONG_MAX == INT_MAX) // sizeof(long)==4 means the data model of the system is ILP32 (32bits OS or Windows 64bits )
289+ #if (LONG_MAX == INT_MAX) // 4 bytes "long" type means the data model is ILP32 or LLP64 (Win64 Visual C++ and MinGW )
290290 /* *
291291 * @brief Bind a 32bits long value to a parameter "?", "?NNN", ":VVV", "@VVV" or "$VVV" in the SQL prepared statement (aIndex >= 1)
292292 */
293293 void bind (const std::string& aName, const long aValue)
294294 {
295295 bind (aName.c_str (), static_cast <int >(aValue));
296296 }
297- #else // sizeof(long)==8 means the data model of the system is LLP64 (64bits Linux )
297+ #else // 8 bytes "long" type means the data model is LP64 (Most Unix-like, Windows when using Cygwin; z/OS )
298298 /* *
299299 * @brief Bind a 64bits long value to a parameter "?", "?NNN", ":VVV", "@VVV" or "$VVV" in the SQL prepared statement (aIndex >= 1)
300300 */
0 commit comments