Fossil

Check-in [b7625d8d8c]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Implicit function declaration on Cygwin
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: b7625d8d8cd6d083adc5f119b97427a9c1a38615
User & Date: jan.nijtmans 2013-09-12 09:22:18.527
References
2013-10-03
14:59
Revert [b7625d8d8c], instead make sure the correct header file is included for Cygwin. ... (check-in: 19b2b2403c user: jan.nijtmans tags: trunk)
Context
2013-09-12
20:06
New target "openssl" in win/Makefile.mingw, for building the openssl static libraries on mingw32 ... (check-in: f469c27d26 user: jan.nijtmans tags: trunk)
09:22
Implicit function declaration on Cygwin ... (check-in: b7625d8d8c user: jan.nijtmans tags: trunk)
09:06
Let "fossil version -v" report the real Tcl version running, not the version of the Tcl (stub) library it was compiled with. ... (check-in: 86a8e1d923 user: jan.nijtmans tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/cgi.c.
41
42
43
44
45
46
47

48
49
50
51
52
53
54
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "cgi.h"
#ifdef __CYGWIN__
  __declspec(dllimport) extern __stdcall int ShellExecuteW(void *, void *,
      void *, void *, void *, int);

#endif

#if INTERFACE
/*
** Shortcuts for cgi_parameter.  P("x") returns the value of query parameter
** or cookie "x", or NULL if there is no such parameter or cookie.  PD("x","y")
** does the same except "y" is returned in place of NULL if there is not match.







>







41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "cgi.h"
#ifdef __CYGWIN__
  __declspec(dllimport) extern __stdcall int ShellExecuteW(void *, void *,
      void *, void *, void *, int);
  __declspec(dllimport) extern __stdcall size_t wcslen(const wchar_t *);
#endif

#if INTERFACE
/*
** Shortcuts for cgi_parameter.  P("x") returns the value of query parameter
** or cookie "x", or NULL if there is no such parameter or cookie.  PD("x","y")
** does the same except "y" is returned in place of NULL if there is not match.