Timespec Redefinition Compile Error

  • 0JADE0
    15th Aug 2015 Member 0 Permalink

    This is my first post, so hopefully I'm doing this right.

     

    I decided to try tpt modding using the tpt++ tutorial(prebuilt project), but I'm getting an error when I try to compile it. The error is the following, repeated countless times throughout the log(It's only this one error repeated, and I don't want to wait for it to fail to compile again to get the whole log unless someone specificaly wants it):

     

    "

    C:\Users\****\Documents\Powder Toy\Modding\The-Powder-Toy-master\includes\pthread.h(320): error C2011: 'timespec': 'struct' type redefinition
    C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt\time.h(39): note: see declaration of 'timespec'

    "

     

    Any help would be appriciated, thanks.

    Edited once by 0JADE0. Last: 15th Aug 2015
  • jacob1
    15th Aug 2015 Developer 0 Permalink
    I googled it, maybe try adding HAVE_STRUCT_TIMESPEC to the list of Preprocessor Definitions, which is somewhere in the project settings (I forget exactly where this is, the manual visual studio guide has you type this in while setting up the project, not after).