This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 361 for ps


Ignore:
Timestamp:
06/02/04 18:33:59 (21 years ago)
Author:
janwas
Message:

fixed *nix libpng include fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/lib/res/tex.cpp

    r353 r361  
    3434#endif
    3535
    36 // libpng includes windows.h - prevent that, and define what it needs.
    37 #define _WINDOWS_
    38 #define WINAPI __stdcall
    39 #define WINAPIV __cdecl
    4036
    4137#ifndef NO_PNG
    4238# ifdef _WIN32
     39#  define _WINDOWS_         // prevent libpng from including windows.h
     40#  define WINAPI __stdcall  // .. and define what it needs
     41#  define WINAPIV __cdecl
    4342#  include <libpng10/png.h>
    44 # else
    45 #  include <png.h>
    4643#  ifdef _MSC_VER
    4744#   pragma comment(lib, "libpng10.lib")
    4845#  endif
    49 # endif
    50 #endif
     46# else  // _WIN32
     47#  include <png.h>
     48# endif // _WIN32
     49#endif  // NO_PNG
    5150
    5251
Note: See TracChangeset for help on using the changeset viewer.