mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0025215: Porting to Android - fix minor issues
STEPConstruct_AP203Context = pw_gecos member of passwd struct disabled in android case. Standard_Atomic - correct usage of __atomic_inc()/__atomic_dec(). Standard_CLocaleSentry - Android doesn't support locales in the C library. Standard_MMgrOpt - use "/dev/zero" and "/dev/null" for allocation of memory blocks on Android. OSD_Chronometer - fix compilation on Android. OSD_Disk, OSD_signal - fix headers inclusion on Android.
This commit is contained in:
@@ -167,7 +167,7 @@ Handle(StepBasic_PersonAndOrganization) STEPConstruct_AP203Context::DefaultPerso
|
||||
// construct person`s name
|
||||
OSD_Process sys;
|
||||
Standard_CString usr = sys.UserName().ToCString();
|
||||
#ifndef WNT
|
||||
#if !defined(_WIN32) && !defined(__ANDROID__)
|
||||
if ( usr ) {
|
||||
struct passwd *pwd = getpwnam ( usr );
|
||||
if ( pwd ) usr = pwd->pw_gecos;
|
||||
|
Reference in New Issue
Block a user