Skip to content

Commit

Permalink
Fixed: Linkage issue
Browse files Browse the repository at this point in the history
_fullpath() should be extern "C".
  • Loading branch information
skyjake committed Oct 7, 2012
1 parent 0846317 commit efb7fcd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion doomsday/engine/portable/src/fs_main.cpp
Expand Up @@ -27,7 +27,6 @@
#include <cctype>

#include "de_base.h"
#include "de_platform.h"
#include "de_console.h"
#include "de_filesys.h"

Expand Down
8 changes: 8 additions & 0 deletions doomsday/engine/unix/include/sys_path.h
Expand Up @@ -29,11 +29,19 @@
#ifndef LIBDENG_FILESYS_PATH_H
#define LIBDENG_FILESYS_PATH_H

#ifdef __cplusplus
extern "C" {
#endif

/**
* Convert the given path to an absolute path.
*/
char* _fullpath(char* full, const char* original, int len);

void _splitpath(const char* path, char* drive, char* dir, char* name, char* ext);

#ifdef __cplusplus
}
#endif

#endif /* LIBDENG_FILESYS_PATH_H */

0 comments on commit efb7fcd

Please sign in to comment.