wchar_t is a C++ built in and should not (always) be defined
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4128 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
parent
bb06036229
commit
6ec0789266
|
@ -2222,3 +2222,6 @@
|
|||
STM32F50xxx family of MCUs.
|
||||
* configs/stm3240g-eval: Add framework for the STMicro STM3240G-EVAL
|
||||
board.
|
||||
* include/sys/types.h: wchar_t is a builtin type in C++ and its
|
||||
declaration can cause errors with certain C++ compilers.
|
||||
|
||||
|
|
|
@ -1260,6 +1260,9 @@ interface of the same name.
|
|||
If the message queue is full and <code>NON_BLOCK</code> is set, the message
|
||||
is not queued and <code>ERROR</code> is returned.
|
||||
</p>
|
||||
<p>
|
||||
<b>NOTE</b>: <i>mq_send()</i> may be called from an interrupt handler.
|
||||
<p>
|
||||
<p>
|
||||
<b>Input Parameters:</b>
|
||||
</p>
|
||||
|
@ -2236,7 +2239,7 @@ If the value of the semaphore resulting from this operation is zero, then
|
|||
on of the tasks blocked waiting for the semaphore will be allowed to
|
||||
return successfully from its call to <i>sem_wait()</i>.
|
||||
<p>
|
||||
<b>NOTE</b>: <i>sem_post()</i> may be called from an interrupt handler.
|
||||
<b>NOTE</b>: <i>sem_post()</i> may be called from an interrupt handler.
|
||||
<p>
|
||||
<b>Input Parameters:</b>
|
||||
<ul>
|
||||
|
@ -2250,9 +2253,9 @@ return successfully from its call to <i>sem_wait()</i>.
|
|||
</ul>
|
||||
|
||||
<p>
|
||||
<b>Assumptions/Limitations:</b> This function cannot be called
|
||||
from an interrupt handler. It assumes the currently executing
|
||||
task is the one that is performing the unlock.
|
||||
<b>Assumptions/Limitations:</b>.
|
||||
When called from an interrupt handler, it will appear as though the
|
||||
interrupt task is the one that is performing the unlock.
|
||||
<p>
|
||||
<b> POSIX Compatibility:</b> Comparable to the POSIX
|
||||
interface of the same name.
|
||||
|
|
|
@ -49,6 +49,7 @@ ARCHPICFLAGS = -fpic
|
|||
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow
|
||||
ARCHWARNINGSXX = -Wall -Wshadow
|
||||
ARCHDEFINES =
|
||||
ARCHDEFINESXX = -DCONFIG_WCHAR_BUILTIN
|
||||
ARCHINCLUDES = -I. -isystem $(TOPDIR)/include
|
||||
ARCHINCLUDESXX = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx
|
||||
ARCHSCRIPT =
|
||||
|
@ -66,7 +67,7 @@ OBJDUMP = $(CROSSDEV)objdump
|
|||
CFLAGS = $(ARCHWARNINGS) $(ARCHOPTIMIZATION) \
|
||||
$(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES) -pipe
|
||||
CXXFLAGS = $(ARCHWARNINGSXX) $(ARCHOPTIMIZATION) \
|
||||
$(ARCHCPUFLAGSXX) $(ARCHINCLUDESXX) $(ARCHDEFINES) $(EXTRADEFINES) -pipe
|
||||
$(ARCHCPUFLAGSXX) $(ARCHINCLUDESXX) $(ARCHDEFINESXX) $(EXTRADEFINES) -pipe
|
||||
CPPFLAGS = $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES)
|
||||
AFLAGS = $(CFLAGS) -D__ASSEMBLY__
|
||||
|
||||
|
|
|
@ -165,9 +165,14 @@ typedef unsigned int id_t;
|
|||
|
||||
typedef intptr_t ptrdiff_t;
|
||||
|
||||
/* Wide, 16-bit character types */
|
||||
/* Wide, 16-bit character types. wchar_t is a built-in type in C++ and
|
||||
* its declaration here may cause compilation errors on some compilers
|
||||
* if -DCONFIG_WCHAR_BUILTIN is not included in the CXXFLAGS.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_WCHAR_BUILTIN
|
||||
typedef uint16_t wchar_t;
|
||||
#endif
|
||||
|
||||
/* blkcnt_t and off_t are signed integer types.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue