Skip to content

SePlatform.h should not be installed or not redefine system stuff  #33

@devernay

Description

@devernay

SePlatform.h is included by SeExprBuiltins.h, and installed with the other includes, but it does a few pretty bad things on the windows platform, such as:

#   define snprintf sprintf_s

(which totally breaks snprintf if compiling with mingw for example)

A public library include should not do such things (we had a hard time figuring out what was happening).

There are two alternatives:
1- do not include SePlatform.h in SeExprBuiltins.h, do not install it, and make sure the SeExpr public includes work without it.
2- leave all the #defines out of SePlatform.h and define these in a private include (e.g. SePrivate.h)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions