-// File: STEPConstruct_AP203Context.cxx
-// Created: Fri Nov 19 11:13:38 1999
-// Author: Andrey BETENEV
-// <abv@doomox.nnov.matra-dtv.fr>
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+// Created on: 1999-11-19
+// Created by: Andrey BETENEV
+// Copyright (c) 1999-1999 Matra Datavision
+// Copyright (c) 1999-2014 OPEN CASCADE SAS
+//
+// This file is part of Open CASCADE Technology software library.
+//
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
+//
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
#include <STEPConstruct_AP203Context.ixx>
-#ifdef HAVE_PWD_H
+#ifndef _WIN32
# include <pwd.h>
-#endif
-
-#ifdef HAVE_NETDB_H
# include <netdb.h>
-#endif
-
-#ifdef WNT
+#else
# include <winsock2.h>
#endif
-#if defined(HAVE_TIME_H) || defined(WNT)
-# include <time.h>
-#endif
-
#include <stdio.h>
#include <OSD_Process.hxx>
// 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;