[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Minios-devel] [UNIKRAFT PATCH v2 2/8] include/uk: Add `extern C` to `plat/time.h`



Reviewed-by: Yuri Volchkov <yuri.volchkov@xxxxxxxxx>

Simon Kuenzer <simon.kuenzer@xxxxxxxxx> writes:

> Make include/uk/plat/time.h header usable with C++
>
> Signed-off-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>
> ---
>  include/uk/plat/time.h | 8 ++++++++
>  1 file changed, 8 insertions(+)
>
> diff --git a/include/uk/plat/time.h b/include/uk/plat/time.h
> index 745c82c..202e0f9 100644
> --- a/include/uk/plat/time.h
> +++ b/include/uk/plat/time.h
> @@ -38,9 +38,17 @@
>  
>  #include <uk/arch/time.h>
>  
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  void ukplat_time_init(void);
>  void ukplat_time_fini(void);
>  
>  __nsec ukplat_monotonic_clock(void);
>  
> +#ifdef __cplusplus
> +}
> +#endif
> +
>  #endif /* __UKPLAT_TIME_H__ */
> -- 
> 2.7.4
>

-- 
Yuri Volchkov
Software Specialist

NEC Europe Ltd
Kurfürsten-Anlage 36
D-69115 Heidelberg

_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.