Skip to content

Commit

Permalink
libdeng: Added extern "C" to some headers
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jun 19, 2012
1 parent b59de6a commit 9fcf34f
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doomsday/engine/api/dfile.h
Expand Up @@ -24,12 +24,12 @@
#ifndef LIBDENG_FILESYS_FILEHANDLE_H
#define LIBDENG_FILESYS_FILEHANDLE_H

#include "dd_types.h"

#ifdef __cplusplus
extern "C" {
#endif

#include "dd_types.h"

/// @addtogroup fs
///@{

Expand Down
8 changes: 8 additions & 0 deletions doomsday/engine/portable/include/abstractfile.h
Expand Up @@ -28,6 +28,10 @@
#include "dfile.h"
#include "lumpinfo.h"

#ifdef __cplusplus
extern "C" {
#endif

// File types.
typedef enum {
FT_UNKNOWNFILE,
Expand Down Expand Up @@ -154,4 +158,8 @@ size_t AbstractFile_ReadLump(abstractfile_t* af, int lumpIdx, uint8_t* buffer);
/// @return Number of "lumps" contained within this resource.
int AbstractFile_LumpCount(abstractfile_t* af);

#ifdef __cplusplus
} // extern "C"
#endif

#endif /* LIBDENG_FILESYS_ABSTRACTFILE_H */
8 changes: 8 additions & 0 deletions doomsday/engine/portable/include/filelist.h
Expand Up @@ -26,6 +26,10 @@

#include "dfile.h"

#ifdef __cplusplus
extern "C" {
#endif

struct abstractfile_s;
struct ddstring_s;

Expand Down Expand Up @@ -214,4 +218,8 @@ void DFile_SetList(DFile* file, FileList* list);
/// @return File object represented by this handle.
struct abstractfile_s* DFile_File_Const(const DFile* file);

#ifdef __cplusplus
} // extern "C"
#endif

#endif /* LIBDENG_FILESYS_FILELIST_H */
8 changes: 8 additions & 0 deletions doomsday/engine/portable/include/lumpinfo.h
Expand Up @@ -27,6 +27,10 @@

#include "dd_string.h"

#ifdef __cplusplus
extern "C" {
#endif

struct abstractfile_s;

/**
Expand All @@ -45,4 +49,8 @@ void F_InitLumpInfo(LumpInfo* info);
void F_CopyLumpInfo(LumpInfo* dst, const LumpInfo* src);
void F_DestroyLumpInfo(LumpInfo* info);

#ifdef __cplusplus
} // extern "C"
#endif

#endif /* LIBDENG_FILESYS_LUMPINFO_H */

0 comments on commit 9fcf34f

Please sign in to comment.