libc: Add support for static_assert
libc: Add support for static_assert

The C11 standard requires this. From 7.2 "Diagnostics <assert.h>"
paragraph 1:
> The header <assert.h> defines the assert and static_assert macros...

paragraph 3:
> The macro
>     static_assert
> expands to _Static_assert.

Since static_assert is a keyword in C++11, don't define it if C++.

Signed-off-by: Thiago Macieira <0ed1648d92ca0373297a182b1dba1b974ad10d88@intel.com>

galak/zephyr,ldts/zephyr,zephyrproject-rtos/zephyr,ldts/zephyr,zephyrproject-rtos/zephyr,nashif/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,mbolivar/zephyr,aceofall/zephyr-iotos,kraj/zephyr,finikorg/zephyr,explora26/zephyr,fbsder/zephyr,explora26/zephyr,GiulianoFranchetto/zephyr,fbsder/zephyr,ldts/zephyr,mbolivar/zephyr,explora26/zephyr,Vudentz/zephyr,kraj/zephyr,mbolivar/zephyr,fbsder/zephyr,nashif/zephyr,kraj/zephyr,Vudentz/zephyr,ldts/zephyr,Vudentz/zephyr,Vudentz/zephyr,fbsder/zephyr,galak/zephyr,punitvara/zephyr,kraj/zephyr,finikorg/zephyr,zephyriot/zephyr,mbolivar/zephyr,explora26/zephyr,GiulianoFranchetto/zephyr,aceofall/zephyr-iotos,punitvara/zephyr,punitvara/zephyr,zephyriot/zephyr,mbolivar/zephyr,nashif/zephyr,galak/zephyr,GiulianoFranchetto/zephyr,fbsder/zephyr,aceofall/zephyr-iotos,nashif/zephyr,zephyriot/zephyr,GiulianoFranchetto/zephyr,Vudentz/zephyr,zephyrproject-rtos/zephyr,finikorg/zephyr,aceofall/zephyr-iotos,galak/zephyr,zephyrproject-rtos/zephyr,ldts/zephyr,explora26/zephyr,galak/zephyr,punitvara/zephyr,zephyriot/zephyr,zephyriot/zephyr,finikorg/zephyr,punitvara/zephyr,nashif/zephyr,aceofall/zephyr-iotos,kraj/zephyr,GiulianoFranchetto/zephyr,finikorg/zephyr