[changeset] Missing ScreenSize & ScreenPixelsPerInch properties

Ben Abbott bpabbott at mac.com
Thu Jan 22 12:54:38 CST 2009


On Thursday, January 22, 2009, at 01:33PM, "John W. Eaton" <jwe at octave.org> wrote:
>On 22-Jan-2009, John W. Eaton wrote:
>
>| (Does GCC define __WIN32__ and WIN32 automatically?)  I'd like to do
>| something similar for OS X to define OCTAVE_USE_OS_X_API.
>
>For now, I went with
>
>  #if defined (__APPLE__)
>  #define OCTAVE_USE_OS_X_API 1
>  #endif
>
>Is there something better we should use?
>
>jwe
>

... looking over the current sources, toplev.cc has 

#if defined (__APPLE__) && defined (__MACH__)
        mac_system = true;
#endif

I'm not sure why both are checked (are there any existing Apple computers that don't have Mach Kernel?). In any event, for the sake of consistency, should both be checked?

Ben





More information about the Octave-maintainers mailing list