You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-cvs@httpd.apache.org by ra...@apache.org on 2003/06/17 06:00:23 UTC

cvs commit: httpd-apreq-2/src apreq.h

randyk      2003/06/16 21:00:23

  Modified:    src      apreq.h
  Log:
  Change declarations of APREQ_DECLARE* on Win32 to use __declspec(dllexport)
  
  Revision  Changes    Path
  1.22      +5 -6      httpd-apreq-2/src/apreq.h
  
  Index: apreq.h
  ===================================================================
  RCS file: /home/cvs/httpd-apreq-2/src/apreq.h,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- apreq.h	15 Jun 2003 10:33:01 -0000	1.21
  +++ apreq.h	17 Jun 2003 04:00:23 -0000	1.22
  @@ -92,14 +92,13 @@
    * @{
    */
   
  -/* XXX temporary workaround for Win32 */
  -#ifndef WIN32
  -
  +#ifdef WIN32
  +#define APREQ_DECLARE(type)             __declspec(dllexport) type __stdcall
  +#define APREQ_DECLARE_NONSTD(type)      __declspec(dllexport) type
  +#define APREQ_DECLARE_DATA              __declspec(dllexport)
  +#else
   #define APREQ_DECLARE(d)                APR_DECLARE(d)
   #define APREQ_DECLARE_NONSTD(d)         APR_DECLARE_NONSTD(d)
  -#else
  -#define APREQ_DECLARE(d)                d
  -#define APREQ_DECLARE_NONSTD(d)         d
   #endif
   
   #define APREQ_URL_ENCTYPE               "application/x-www-form-urlencoded"