~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to pvm3/src/pvmwin.h

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
 
/* $Id: pvmwin.h,v 1.1 1997/06/27 20:24:59 pvmsrc Exp $ */
 
2
/* $Id: pvmwin.h,v 1.3 2002/10/15 07:40:10 chanceli Exp $ */
3
3
 
4
4
/*
5
5
 *         PVM version 3.4:  Parallel Virtual Machine System
38
38
#ifdef WIN32
39
39
#define __fortran __stdcall
40
40
#endif
 
41
 
41
42
#define STRICT
42
 
#ifndef __ABSC__
 
43
 
43
44
#include <sys/timeb.h>
 
45
#include <time.h>
44
46
#include <process.h>
45
 
#include <io.h>
46
 
#endif
47
 
#include <time.h>
48
47
#include <winsock.h>
 
48
 
49
49
#include <windows.h>
50
50
 
 
51
/*      WIN32 gets stdarg.h via pvm3.h -> pvmwin.h -> windows.h
 
52
        nice coding trail - NOT...
 
53
        since WIN32 is not a __STDC__ environment - it needs varargs.h
 
54
        so, this will cleanup the incorrect include order for var args
 
55
        from windows.h first must remove va_start va_end to avoid compiler
 
56
        warnings...  Someone else must then include the varargs.h file
 
57
        or that will then cause error.
 
58
        uggghhhhh... this is ugly coding at its best
 
59
        jpc: 2002 seams not a good idea for mingw 
 
60
*/
 
61
 
 
62
#if defined(WIN32) && !defined(IMA_MINGW)
 
63
#undef va_start
 
64
#undef va_end
 
65
#endif
 
66
 
51
67
#include <stdio.h>
 
68
#include <io.h>
52
69
 
53
70
#ifndef HASSTDLIB
54
71
#define HASSTDLIB
57
74
#ifndef SYSVBFUNC
58
75
#define SYSVBFUNC
59
76
#endif
60
 
 
61
77
#ifndef SYSVSTR
62
78
#define SYSVSTR
63
79
#endif