Skip to content

correct define to use on Windows only code #7446

@dimitre

Description

@dimitre

I've seen in different places of OF a define called TARGET_WIN32
like
#if defined(TARGET_WIN32)

is this true for all windows platform, including 64 bits?
should we use it or instead OF_TARGET_WINDOWS or something similar?
or maybe even better, have

OF_PLATFORM_WINDOWS
OF_PLATFORM_MACOS
OF_PLATFORM_LINUX

to define pieces of code that will run in all targets of the same platform?
thoughts?

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