提交 3eb9b737 编写于 作者: P Peter Eisentraut

Remove compiler warnings (add missing include files). Only link against

-lm if it's actually there.
上级 8df6b2b5
......@@ -2,7 +2,7 @@
#
# GNUMakefile for psqlodbc (Postgres ODBC driver)
#
# $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/GNUmakefile,v 1.6 2000/10/23 21:43:58 petere Exp $
# $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/GNUmakefile,v 1.7 2000/10/28 15:10:36 petere Exp $
#
#-------------------------------------------------------------------------
......@@ -23,7 +23,7 @@ OBJS = info.o bind.o columninfo.o connection.o convert.o drvconn.o \
pgtypes.o psqlodbc.o qresult.o results.o socket.o parse.o statement.o \
gpps.o tuple.o tuplelist.o dlg_specific.o $(OBJX)
SHLIB_LINK= -lm
SHLIB_LINK = $(filter -lm, $(LIBS))
all: all-lib
......
......@@ -24,6 +24,7 @@
#include "pgtypes.h"
#include <stdlib.h>
#include <malloc.h>
#include <string.h>
#ifndef WIN32
#include "iodbc.h"
......
......@@ -18,6 +18,7 @@
#include "statement.h"
#include <stdlib.h>
#include <malloc.h>
#include <string.h>
/* The one instance of the handles */
ConnectionClass *conns[MAX_CONNECTIONS];
......
......@@ -18,6 +18,7 @@
#endif
#include "psqlodbc.h"
#include <string.h>
#ifndef WIN32
#include "iodbc.h"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册