Changeset 6709


Ignore:
Timestamp:
Sep 5, 2008, 2:32:24 PM (13 years ago)
Author:
muks
Message:

(win32) Conditionally build shttpd win32 code

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r6695 r6709  
    221221     have_msw="yes"
    222222     CXXFLAGS="$CXXFLAGS -mms-bitfields -mwin32 -mwindows"
    223      CPPFLAGS="$CPPFLAGS -DWIN32 -DWIN32_LEAN_AND_MEAN"
     223     CPPFLAGS="$CPPFLAGS -DWIN32 -D_WIN32 -DWIN32_LEAN_AND_MEAN"
    224224     LIBS="$LIBS -lshell32 -lws2_32"
    225225     transmissionlocaledir="locale"
  • trunk/third-party/shttpd/Makefile.am

    r6385 r6709  
    77    string.c shttpd.c log.c auth.c md5.c \
    88    io_file.c io_socket.c io_ssl.c io_emb.c io_dir.c \
    9     compat_unix.c
     9    compat_unix.c compat_win32.c
    1010
    1111noinst_HEADERS = \
  • trunk/third-party/shttpd/compat_unix.c

    r6644 r6709  
    88 * this stuff is worth it, you can buy me a beer in return.
    99 */
     10
     11#ifndef _WIN32
    1012
    1113#include "defs.h"
     
    127129}
    128130#endif /* !NO_CGI */
     131
     132#endif /* !_WIN32 */
     133
  • trunk/third-party/shttpd/compat_win32.c

    r6645 r6709  
    88 * this stuff is worth it, you can buy me a beer in return.
    99 */
     10
     11#ifdef _WIN32
    1012
    1113#include "defs.h"
     
    686688                exit(EXIT_SUCCESS);
    687689}
     690
     691#endif /* _WIN32 */
     692
Note: See TracChangeset for help on using the changeset viewer.