Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9835da8033549a7d01f0e2607ad3a54c1c5e83ee
Ticket: e14c77b845ee4f52954de716a8b885f7fa9c9980
Compilation error over typedef
User & Date: griffin on 2016-04-12 13:56:51
Changes

  1. icomment:
    There exists a stddef.h file, but STDC_HEADERS is not defined.  Nor is __STDC__.  I speculate that since this is 64-bit Windows, the data/pointer model may not match standard C.
    
    I changed the code to this and it seems to work:
    
    #if defined(STDC_HEADERS) || defined(_WIN64)
    #include <stddef.h>
    #else
    typedef int ptrdiff_t;
    #endif
    
  2. login: "griffin"
  3. mimetype: "text/plain"