lkl / linux

Linux kernel source tree

Home Page:https://lkl.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rename parameters `new` to something else

ToJIka4 opened this issue · comments

Necessary to rename parameters new to something else. It cause error while compilling with g++.
You can see error : expected ‘,’ or ‘...’ before ‘new’

static inline long lkl_sys_link(const char *existing, const char *new)

Fast solution is using define

#define new __new
#include <lkl.h>
#include <lkl_host.h>
#undef new