/*
    PsychPlatform.h

    PLATFORMS:

        Only Linux

    AUTHORS:

        Mario Kleiner   mk  mario.kleiner.de@gmail.com

    HISTORY:

    2/20/06 mk      Wrote it.

    DESCRIPTION:

        PsychPlatform.h contains constant definitions asserting conditions
        specific to the the Linux version of Screen.  If you
        use a conditional macro wich branches according to one of the constants
        in this file, then that conditional macro does not belong here.

        Note that this should be the ONLY Psychtoolbox file which is conditionally
        included by platform.  Exceptions to this rule might be:
        -project.def files included in VC++ files
        -StdAfx pre-compiled header files included in VC++ files.

    TO DO:

        For now the project path specifies which platform version of this file to
        include, with each version of this file defining constants which identify
        the platform.  A smarter way to do this would be to use a single version
        of this file which detects contants defined within the compilation
        environment, for example as a flag passed to the compiler.
*/

#include "PsychPlatformConstants.h"
#include <sys/user.h>

//these control build switches
#define PSYCH_SYSTEM            PSYCH_LINUX

// If no specific runtime language is provided by build-system, we default to Matlab.
#ifndef PSYCH_LANGUAGE
#define PSYCH_LANGUAGE          PSYCH_MATLAB
#endif

#define PSYCH_DEBUG             PSYCH_ON

#ifndef PSYCH_NOLM

#if !defined(__aarch64__) && !defined(__x86_64__)
#define PSYCH_NOLM
#else
#if !defined(PTB_USE_WAYLAND) && !defined(PTB_USE_WAYLAND_PRESENT) && defined(PTBOCTAVE3MEX)
#define PSYCH_NOLM
#endif
#endif

#endif
