Changeset 4674 for zzuf


Ignore:
Timestamp:
Oct 6, 2010, 11:33:19 PM (9 years ago)
Author:
Sam Hocevar
Message:

Fix missing ZZUF_DEBUGFD passing and debug function availability.

Location:
zzuf/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/msvc/libzzuf.vcxproj

    r4656 r4674  
    5252    <ClCompile>
    5353      <Optimization>Disabled</Optimization>
    54       <AdditionalIncludeDirectories>..\msvc;..\src\common;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
    55       <PreprocessorDefinitions>WIN32;_WINDOWS;_DEBUG;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
     54      <AdditionalIncludeDirectories>..\msvc;..\src\common;..\src\libzzuf;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
     55      <PreprocessorDefinitions>WIN32;_WINDOWS;_DEBUG;LIBZZUF;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    5656      <MinimalRebuild>true</MinimalRebuild>
    5757      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
     
    7979  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
    8080    <ClCompile>
    81       <AdditionalIncludeDirectories>..\msvc;..\src\common;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
    82       <PreprocessorDefinitions>WIN32;_WINDOWS;NDEBUG;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
     81      <AdditionalIncludeDirectories>..\msvc;..\src\common;..\src\libzzuf;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
     82      <PreprocessorDefinitions>WIN32;_WINDOWS;LIBZZUF;NDEBUG;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    8383      <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
    8484      <ObjectFileName>$(IntDir).libs/</ObjectFileName>
  • zzuf/trunk/src/myfork.c

    r4668 r4674  
    212212
    213213    /* Set environment variables */
    214     sprintf(buf, "%i", DEBUG_FILENO);
     214#if defined _WIN32
     215    sprintf(buf, "%i", _get_osfhandle(pipes[0][1]));
     216#else
     217    sprintf(buf, "%i", pipes[0][1]);
     218#endif
    215219    setenv("ZZUF_DEBUGFD", buf, 1);
    216220    sprintf(buf, "%i", opts->seed);
Note: See TracChangeset for help on using the changeset viewer.