Author: wyoung
Date: Thu Feb 7 23:08:42 2008
New Revision: 2166
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2166&view=rev
Log:
Added several #includes for standard C headers on platforms where
needed headers aren't included implicitly by those we already include.
Patch by Andres Salomon <[EMAIL PROTECTED]>
Modified:
trunk/examples/cmdline.cpp
trunk/lib/datetime.cpp
trunk/lib/dbdriver.h
trunk/lib/mystring.h
trunk/lib/sql_buffer.cpp
trunk/lib/tcp_connection.cpp
Modified: trunk/examples/cmdline.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/cmdline.cpp?rev=2166&r1=2165&r2=2166&view=diff
==============================================================================
--- trunk/examples/cmdline.cpp (original)
+++ trunk/examples/cmdline.cpp Thu Feb 7 23:08:42 2008
@@ -2,7 +2,7 @@
cmdline.cpp - Utility functions for printing out data in common
formats, required by most of the example programs.
- Copyright (c) 2007 by Educational Technology Resources, Inc.
+ Copyright (c) 2007-2008 by Educational Technology Resources, Inc.
Others may also hold copyrights on code in this file. See the
CREDITS file in the top directory of the distribution for details.
@@ -29,6 +29,7 @@
#include <iostream>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
Modified: trunk/lib/datetime.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/datetime.cpp?rev=2166&r1=2165&r2=2166&view=diff
==============================================================================
--- trunk/lib/datetime.cpp (original)
+++ trunk/lib/datetime.cpp Thu Feb 7 23:08:42 2008
@@ -33,6 +33,7 @@
#include <iomanip>
+#include <stdlib.h>
#include <time.h>
using namespace std;
Modified: trunk/lib/dbdriver.h
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/dbdriver.h?rev=2166&r1=2165&r2=2166&view=diff
==============================================================================
--- trunk/lib/dbdriver.h (original)
+++ trunk/lib/dbdriver.h Thu Feb 7 23:08:42 2008
@@ -3,7 +3,7 @@
/***********************************************************************
Copyright (c) 1998 by Kevin Atkinson, (c) 1999-2001 by MySQL AB, and
- (c) 2004-2007 by Educational Technology Resources, Inc. Others may
+ (c) 2004-2008 by Educational Technology Resources, Inc. Others may
also hold copyrights on code in this file. See the CREDITS file in
the top directory of the distribution for details.
@@ -33,6 +33,8 @@
#include "options.h"
#include <typeinfo>
+
+#include <limits.h>
namespace mysqlpp {
Modified: trunk/lib/mystring.h
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/mystring.h?rev=2166&r1=2165&r2=2166&view=diff
==============================================================================
--- trunk/lib/mystring.h (original)
+++ trunk/lib/mystring.h Thu Feb 7 23:08:42 2008
@@ -41,6 +41,7 @@
#include <limits>
#include <stdlib.h>
+#include <string.h>
namespace mysqlpp {
Modified: trunk/lib/sql_buffer.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/sql_buffer.cpp?rev=2166&r1=2165&r2=2166&view=diff
==============================================================================
--- trunk/lib/sql_buffer.cpp (original)
+++ trunk/lib/sql_buffer.cpp Thu Feb 7 23:08:42 2008
@@ -1,7 +1,7 @@
/***********************************************************************
sql_buffer.cpp - Implements the SQLBuffer class.
- Copyright (c) 2007 by Educational Technology Resources, Inc.
+ Copyright (c) 2007-2008 by Educational Technology Resources, Inc.
Others may also hold copyrights on code in this file. See the
CREDITS file in the top directory of the distribution for details.
@@ -24,6 +24,8 @@
***********************************************************************/
#include "sql_buffer.h"
+
+#include <string.h>
namespace mysqlpp {
Modified: trunk/lib/tcp_connection.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/tcp_connection.cpp?rev=2166&r1=2165&r2=2166&view=diff
==============================================================================
--- trunk/lib/tcp_connection.cpp (original)
+++ trunk/lib/tcp_connection.cpp Thu Feb 7 23:08:42 2008
@@ -1,7 +1,7 @@
/***********************************************************************
tcp_connection.cpp - Implements the TCPConnection class.
- Copyright (c) 2007 by Educational Technology Resources, Inc.
+ Copyright (c) 2007-2008 by Educational Technology Resources, Inc.
Others may also hold copyrights on code in this file. See the
CREDITS file in the top directory of the distribution for details.
@@ -34,6 +34,7 @@
#endif
#include <ctype.h>
+#include <stdlib.h>
using namespace std;
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits