Skip to Content.
Sympa Menu

freetds - [freetds] c++ compilation problems

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: christos AT zoulas.com (Christos Zoulas)
  • To: freetds AT lists.ibiblio.org
  • Subject: [freetds] c++ compilation problems
  • Date: Mon, 5 Jan 2004 17:40:46 -0500


Hello,

The following allows c++ to be used with the tds header files. A struct/class
name cannot be the same as a c/c++ function name in c++.

And a small request: Can the cvs server that serves freetds be modified
to use the tag keyword, and the source changed to use "$FreeTDS$" instead
of "$Id$"? It is a PITA to do imports and merges otherwise.

Thanks,

christos

--- cspublic.h 5 Jan 2004 19:24:25 -0000 1.1.1.6
+++ cspublic.h 5 Jan 2004 19:31:49 -0000 1.10
@@ -76,7 +76,7 @@
#define CS_TP_SIZE 16 /* text pointer */
#define CS_TS_SIZE 8 /* length of timestamp */

-typedef struct cs_config
+typedef struct _cs_config
{
short cs_expose_formats;
} CS_CONFIG;
@@ -149,7 +149,7 @@
struct cs_diag_msg *next;
};

-typedef struct cs_locale
+typedef struct _cs_locale
{
char *language;
char *charset;
@@ -194,7 +194,7 @@
/* Structure CS_COMMAND changed for RPC functionality -SUHA */
/* Added CSREMOTE_PROC *rpc to CS_COMMAND structure */

-typedef struct cs_command
+typedef struct _cs_command
{
CS_CHAR *query;
CS_INT command_type;
@@ -233,7 +233,7 @@

#define CS_SRC_VALUE -2562

-typedef struct cs_datafmt
+typedef struct _cs_datafmt
{
int datatype;
int format;




Archive powered by MHonArc 2.6.24.

Top of Page