diff -c psqlodbc.old/connection.c psqlodbc/connection.c
*** psqlodbc.old/connection.c	Tue Jul 28 13:03:23 1998
--- psqlodbc/connection.c	Tue Jul 28 12:57:17 1998
***************
*** 380,390 ****
--- 380,392 ----
  		}
  	}
  
+ #ifndef UNIX
  	/*	Check for translation dll */
  	if ( self->translation_handle) {
  		FreeLibrary (self->translation_handle);
  		self->translation_handle = NULL;
  	}
+ #endif
  
  	mylog("exit CC_Cleanup\n");
  	return TRUE;
***************
*** 393,399 ****
  int
  CC_set_translation (ConnectionClass *self)
  {
! 
  	if (self->translation_handle != NULL) {
  		FreeLibrary (self->translation_handle);
  		self->translation_handle = NULL;
--- 395,401 ----
  int
  CC_set_translation (ConnectionClass *self)
  {
! #ifndef UNIX
  	if (self->translation_handle != NULL) {
  		FreeLibrary (self->translation_handle);
  		self->translation_handle = NULL;
***************
*** 424,429 ****
--- 426,432 ----
  		self->errormsg = "Could not find translation DLL functions.";
  		return FALSE;
  	}
+ #endif
  
  	return TRUE;
  }
diff -c psqlodbc.old/connection.h psqlodbc/connection.h
*** psqlodbc.old/connection.h	Tue Jul 28 13:03:10 1998
--- psqlodbc/connection.h	Tue Jul 28 12:36:56 1998
***************
*** 162,167 ****
--- 162,174 ----
  	char			name[MAX_TABLE_LEN+1];
  };
  
+ #ifdef UNIX
+ #define WINAPI CALLBACK
+ #define DLLHANDLE void *
+ #else
+ #define DLLHANDLE HINSTANCE
+ #endif
+ 
   /* Translation DLL entry points */
  typedef BOOL (FAR WINAPI *DataSourceToDriverProc) (UDWORD,
  					SWORD,
***************
*** 199,205 ****
  	int				ntables;
  	COL_INFO		**col_info;
  	long            translation_option;
! 	HINSTANCE       translation_handle;
  	DataSourceToDriverProc  DataSourceToDriver;
  	DriverToDataSourceProc  DriverToDataSource;
  	char			transact_status;		/* Is a transaction is currently in progress */
--- 206,212 ----
  	int				ntables;
  	COL_INFO		**col_info;
  	long            translation_option;
! 	DLLHANDLE       translation_handle;
  	DataSourceToDriverProc  DataSourceToDriver;
  	DriverToDataSourceProc  DriverToDataSource;
  	char			transact_status;		/* Is a transaction is currently in progress */
