Skip to content
Snippets Groups Projects
Commit efcacc4c authored by Colin Walters's avatar Colin Walters
Browse files

fdio: Fix compilation via C++

I may use https://cxx.rs/ in rpm-ostree, which means we
need our dependencies' headers to build in C++ mode.
parent 493d399b
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ G_BEGIN_DECLS
static inline
const char *glnx_basename (const char *path)
{
gchar *base = strrchr (path, G_DIR_SEPARATOR);
const gchar *base = strrchr (path, G_DIR_SEPARATOR);
if (base)
return base + 1;
......@@ -55,7 +55,7 @@ const char *glnx_basename (const char *path)
static inline void
glnx_stdio_file_cleanup (void *filep)
{
FILE *f = filep;
FILE *f = (FILE*)filep;
if (f)
fclose (f);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment