Commit f1faf7ed authored by yoogx's avatar yoogx

* Remove xlocale.h

        For openaadl/polyorb-hi-c#31
parent fe7b0899
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* *
* For more informations, please visit http://taste.tuxfamily.org/wiki * For more informations, please visit http://taste.tuxfamily.org/wiki
* *
* Copyright (C) 2007-2009 Telecom ParisTech, 2010-2014 ESA & ISAE. * Copyright (C) 2007-2009 Telecom ParisTech, 2010-2019 ESA & ISAE.
*/ */
#ifndef __PO_HI_TIME_H__ #ifndef __PO_HI_TIME_H__
...@@ -14,11 +14,6 @@ ...@@ -14,11 +14,6 @@
#include <po_hi_types.h> #include <po_hi_types.h>
#ifndef HAVE_CLOCK_GETTIME #ifndef HAVE_CLOCK_GETTIME
#if defined (__CYGWIN__) || defined (__MINGW32__) || defined (RTEMS_POSIX) || defined (__PO_HI_RTEMS_CLASSIC_API)
#else
#include <xlocale.h>
#endif
#include <time.h> #include <time.h>
#endif #endif
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* *
* For more informations, please visit http://taste.tuxfamily.org/wiki * For more informations, please visit http://taste.tuxfamily.org/wiki
* *
* Copyright (C) 2007-2009 Telecom ParisTech, 2010-2017 ESA & ISAE. * Copyright (C) 2007-2009 Telecom ParisTech, 2010-2019 ESA & ISAE.
*/ */
#include <po_hi_config.h> #include <po_hi_config.h>
...@@ -14,10 +14,6 @@ ...@@ -14,10 +14,6 @@
/* Headers from PolyORB-HI-C */ /* Headers from PolyORB-HI-C */
#if defined (__CYGWIN__) || defined (__MINGW32__) || defined (RTEMS_POSIX) || defined (__PO_HI_RTEMS_CLASSIC_API) || defined (FREERTOS)
#else
#include <xlocale.h>
#endif
#include <string.h> #include <string.h>
/* Headers from the executive */ /* Headers from the executive */
...@@ -35,8 +31,8 @@ void __po_hi_msg_reallocate (__po_hi_msg_t* message) ...@@ -35,8 +31,8 @@ void __po_hi_msg_reallocate (__po_hi_msg_t* message)
} }
void __po_hi_msg_write (__po_hi_msg_t* msg, void __po_hi_msg_write (__po_hi_msg_t* msg,
void* data, void* data,
__po_hi_uint32_t len) __po_hi_uint32_t len)
{ {
memcpy (msg->content, data, len); memcpy (msg->content, data, len);
msg->length = len; msg->length = len;
...@@ -48,11 +44,11 @@ int __po_hi_msg_length (__po_hi_msg_t* msg) ...@@ -48,11 +44,11 @@ int __po_hi_msg_length (__po_hi_msg_t* msg)
void __po_hi_msg_copy (__po_hi_msg_t* dest, void __po_hi_msg_copy (__po_hi_msg_t* dest,
__po_hi_msg_t* src) __po_hi_msg_t* src)
{ {
memcpy (dest->content, memcpy (dest->content,
src->content, src->content,
__PO_HI_MESSAGES_MAX_SIZE); __PO_HI_MESSAGES_MAX_SIZE);
dest->length = src->length; dest->length = src->length;
} }
...@@ -157,22 +153,22 @@ void __po_hi_messages_debug (__po_hi_msg_t* msg) ...@@ -157,22 +153,22 @@ void __po_hi_messages_debug (__po_hi_msg_t* msg)
if (Index_Hexa >= 45) if (Index_Hexa >= 45)
{ {
Hexa[Index_Hexa] = '\0'; Hexa[Index_Hexa] = '\0';
ASCII[Index_ASCII] = '\0'; ASCII[Index_ASCII] = '\0';
printf ("%s || %s\n", Hexa, ASCII); printf ("%s || %s\n", Hexa, ASCII);
Index_Hexa = 0; Index_Hexa = 0;
Index_ASCII = 0; Index_ASCII = 0;
for (i = 0 ; i < 50 ; i++) for (i = 0 ; i < 50 ; i++)
Hexa[i] = ' '; Hexa[i] = ' ';
for (i = 0 ; i < 17 ; i++) for (i = 0 ; i < 17 ; i++)
ASCII[i] = ' '; ASCII[i] = ' ';
} }
} }
if (Index_Hexa > 0) if (Index_Hexa > 0)
{ {
for (i = Index_Hexa ; i<44 ; i++) for (i = Index_Hexa ; i<44 ; i++)
Hexa[i] = ' '; Hexa[i] = ' ';
Index_Hexa = 45; Index_Hexa = 45;
Hexa[Index_Hexa] = '\0'; Hexa[Index_Hexa] = '\0';
......
...@@ -5,13 +5,9 @@ ...@@ -5,13 +5,9 @@
* *
* For more informations, please visit http://taste.tuxfamily.org/wiki * For more informations, please visit http://taste.tuxfamily.org/wiki
* *
* Copyright (C) 2011-2017 ESA & ISAE. * Copyright (C) 2011-2019 ESA & ISAE.
*/ */
#if defined (__CYGWIN__) || defined (__MINGW32__) || defined (RTEMS_POSIX) || defined (__PO_HI_RTEMS_CLASSIC_API) || defined (FREERTOS)
#else
#include <xlocale.h>
#endif
#include <string.h> #include <string.h>
#include <po_hi_config.h> #include <po_hi_config.h>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* *
* For more informations, please visit http://taste.tuxfamily.org/wiki * For more informations, please visit http://taste.tuxfamily.org/wiki
* *
* Copyright (C) 2007-2009 Telecom ParisTech, 2010-2017 ESA & ISAE. * Copyright (C) 2007-2009 Telecom ParisTech, 2010-2019 ESA & ISAE.
*/ */
#if defined (__linux__) || defined (RTEMS412) #if defined (__linux__) || defined (RTEMS412)
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
#if defined (RTEMS_POSIX) || defined (POSIX) || defined (XENO_POSIX) #if defined (RTEMS_POSIX) || defined (POSIX) || defined (XENO_POSIX)
#if defined (__CYGWIN__) || defined (__MINGW32__) || defined (RTEMS_POSIX) || defined (__PO_HI_RTEMS_CLASSIC_API) #if defined (__CYGWIN__) || defined (__MINGW32__) || defined (RTEMS_POSIX) || defined (__PO_HI_RTEMS_CLASSIC_API)
#else #else
#include <xlocale.h>
#include <unistd.h> #include <unistd.h>
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment