Bug #499

Undefined POSIX

Added by Sender Ghost about 7 years ago. Updated about 7 years ago.

Status:ApprovedStart date:08/04/2013
Priority:HighDue date:
Assignee:Miroslav Fidler% Done:

0%

Category:-Spent time:-
Target version:-

Description

Near with PLATFORM_POSIX defines I found some places with POSIX, which undefined.
While TheIDE uses POSIX flags inside of package configuration, it creates flagPOSIX define for building, not POSIX.

The attached patch fixes such cases with using PLATFORM_POSIX define.

499_uppsrc.diff Magnifier - The diff file to apply for uppsrc directory (710 Bytes) Sender Ghost, 08/04/2013 09:16 PM

History

#1 Updated by Sender Ghost about 7 years ago

  • Status changed from New to Patch ready

#2 Updated by Sender Ghost about 7 years ago

It's easy to check:

#include <Core/Core.h>

using namespace Upp;

CONSOLE_APP_MAIN
{
    Cout() << "POSIX " 
#ifdef POSIX
    << "defined" 
#else
    << "undefined" 
#endif
    << ".\nflagPOSIX " 
#ifdef flagPOSIX
    << "defined" 
#else
    << "undefined" 
#endif
    << ".\nPLATFORM_POSIX " 
#ifdef PLATFORM_POSIX
    << "defined" 
#else
    << "undefined" 
#endif
    << ".\n";
}

With following results (on FreeBSD 9.1):
POSIX undefined.
flagPOSIX defined.
PLATFORM_POSIX defined.

#3 Updated by Miroslav Fidler about 7 years ago

  • Status changed from Patch ready to Approved

thanks!

Also available in: Atom PDF