Changeset 10440


Ignore:
Timestamp:
2005-08-08T16:15:41+12:00 (19 years ago)
Author:
kjdon
Message:

small changes so it compiles under windows

Location:
trunk/gsdl/src/recpt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/yaz_zclient.c

    r10177 r10440  
    4545#endif
    4646
    47 #ifdef WIN32
     47#ifdef __WIN32__
    4848#include <sys/stat.h>
    4949#include <io.h>
     
    365365{
    366366   
    367     if (!*session->result)
    368     return NULL; /* no init info to return */
    369    
    370367    char* buffer; /* we are returning some info in this buffer */
    371368    char *text_id="ID: ";
    372369    char *text_name="<br>\nName: ";
    373370    char *text_ver="<br>\nVersion: ";
     371    size_t initial_length;
     372   
     373    if (!*session->result)
     374    return NULL; /* no init info to return */
     375   
    374376   
    375     size_t initial_length = strlen(text_id)+strlen(text_name)+strlen(text_ver)+
     377    initial_length = strlen(text_id)+strlen(text_name)+strlen(text_ver)+
    376378    (session->implementationId?strlen(session->implementationId):0) +
    377379    (session->implementationName?strlen(session->implementationName):0) +
     
    818820}
    819821
    820 int cmd_open(const char *arg)
     822static int cmd_open(const char *arg)
    821823{
    822824    if (arg)
  • trunk/gsdl/src/recpt/z3950proto.cpp

    r9933 r10440  
    3232#include <stdio.h> // for (FILE *) type for yyin and fopen.
    3333// config file parsing stuff
     34extern "C" {
    3435#include "z3950cfg.h" // for reading in config files -
    3536// defines "struct z3950cfg *zserver_list" as the head of the list.
    36 
     37}
    3738// note! yyin is hash-defined in z3950cfg.h to something else, to avoid
    3839// name conflicts with "other" yyins.
    39 extern FILE *yyin;
    40 extern FILE *yyout; // redirect for `errors' (unmatched tokens in flex)
    41 
     40//extern "C" {
     41FILE *yyin;
     42FILE *yyout; // redirect for `errors' (unmatched tokens in flex)
     43//}
    4244extern "C" {
    4345  extern int zconfigparse();
     
    588590  text_t query; // this should not be needed, as we have already connected to
    589591  // get the  title....
    590   int querytype; //ditto...
     592  int querytype = 1; //ditto...
    591593  text_t field;  // ditto...
    592594  (*zserver)->getfullrecord(query,querytype,field,request.OID.getint(),
  • trunk/gsdl/src/recpt/z3950proxy.cpp

    r10179 r10440  
    2727#include "comtypes.h"
    2828#include <stdio.h>
     29
    2930// z39.50 yaz stuff
     31#define min(a,b) (((a)<(b))?(a):(b))
    3032
    3133extern "C" {
Note: See TracChangeset for help on using the changeset viewer.