# Type definitions in portmacro.h of RISC-V port?

**URL:** <https://forums.freertos.org/t/type-definitions-in-portmacro-h-of-risc-v-port/8080>\
**Category:** Kernel\
**Created:** [September 25, 2019, 10:00am UTC](https://forums.freertos.org/t/type-definitions-in-portmacro-h-of-risc-v-port/8080 "2019-09-25T10:00:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [September 25, 2019, 10:00am UTC](https://forums.freertos.org/t/type-definitions-in-portmacro-h-of-risc-v-port/8080/1 "2019-09-25T10:00:09Z")

</div>

**[kj-lin](https://sourceforge.net/u/kj-lin/)** wrote on [Wednesday, September 25, 2019](https://sourceforge.net/p/freertos/discussion/382005/thread/1c12842088/#69be):

We found that it will get “unknown type name ‘portDOUBLE’” error while compiling “Common/Full/flop.c” or “Common/Minimal/flop.c” files in FreeRTOS RISC-V port.  
This is due to that there is no “portDOUBLE” definition in portmacro.h of RISC-V port.  
Should the following type definitions being added to RISC-V port’s portmacro.h file?

```auto
/* Type definitions. */
#define portCHAR char
#define portFLOAT float
#define portDOUBLE double
#define portLONG long
#define portSHORT short

```

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [September 25, 2019, 1:33pm UTC](https://forums.freertos.org/t/type-definitions-in-portmacro-h-of-risc-v-port/8080/2 "2019-09-25T13:33:47Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Wednesday, September 25, 2019](https://sourceforge.net/p/freertos/discussion/382005/thread/1c12842088/#69be/926c):

These are legacy definitions that date back to original FreeRTOS  
versions - they are not used anywhere in the kernel itself. Really the  
mistake here is that they are still used in the flop.c source file. I  
have added them into both the GCC and IAR RISC-V ports none the less -  
not checked in yet though.
