Changeset 15660

Show
Ignore:
Timestamp:
23.05.2008 11:04:31 (11 years ago)
Author:
mdewsnip
Message:

Various fixes to get MG to compile with Microsoft Visual Studio 2005.

Location:
indexers/trunk/mg
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • indexers/trunk/mg/lib/win32.mak

    r14908 r15660  
    3232 
    3333DEFS = -DQUIET -DHAVE_CONFIG_H -D__WIN32__ -D_LITTLE_ENDIAN -DPARADOCNUM \ 
    34        -DSHORT_SUFFIX 
     34       -DSHORT_SUFFIX -D_CRT_SECURE_NO_DEPRECATE 
    3535 
    3636INCLUDES = -I"." -I"$(MGHOME)" 
  • indexers/trunk/mg/src/images/utils.h

    r3745 r15660  
    3131#define DEBUG 
    3232 
     33#ifndef min 
    3334#define min(a,b) ((a)<(b) ? (a) : (b)) 
     35#endif 
     36#ifndef max 
    3437#define max(a,b) ((a)>(b) ? (a) : (b)) 
     38#endif 
    3539 
    3640#define GEN_MAGIC(a,b,c,d) ((unsigned long)(((a)<<24) + ((b)<<16) + \ 
  • indexers/trunk/mg/src/images/win32.mak

    r14908 r15660  
    2929CC = cl 
    3030CPPFLAGS =  
    31 DEFS = -DHAVE_CONFIG_H -D__WIN32__ -D_LITTLE_ENDIAN 
     31DEFS = -DHAVE_CONFIG_H -D__WIN32__ -D_LITTLE_ENDIAN -D_CRT_SECURE_NO_DEPRECATE 
    3232INCLUDES = -I"." -I"$(MGHOME)" -I"$(MGHOME)\lib" 
    3333LDFLAGS = 
  • indexers/trunk/mg/src/text/win32.mak

    r13757 r15660  
    3333CC = cl 
    3434CPPFLAGS =  
    35 # DEFS = -DQUIET -D__WIN32__ -DSHORT_SUFFIX -DHAVE_STRING_H -DHAVE_FCNTL_H \ 
    36 #        -DSTDC_HEADERS -DHAVE_CONFIG_H 
    3735DEFS = -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DHAVE_CONFIG_H \ 
    38        -D__WIN32__ -D_LITTLE_ENDIAN 
     36       -D__WIN32__ -D_LITTLE_ENDIAN -D_CRT_SECURE_NO_DEPRECATE 
    3937INCLUDES = -I"." -I"$(MGHOME)" -I"$(MGHOME)\lib" 
    4038COMPILE = $(CC) $(CPPFLAGS) -c $(DEFS) $(INCLUDES) 
  • indexers/trunk/mg/win32cfg.h

    r14908 r15660  
    115115/* #undef HAVE_SETBUFFER */ 
    116116 
     117/* Define if you have the strerror function.  */ 
     118#define HAVE_STRERROR 1 
     119 
    117120/* Define if you have the strftime function.  */ 
    118121#define HAVE_STRFTIME 1