Skip to content

Commit

Permalink
Merge pull request JuliaLang#9512 from waTeim/waT/rqual
Browse files Browse the repository at this point in the history
Remove const qualifier from jl_ver_* functions returning int
  • Loading branch information
ihnorton committed Dec 31, 2014
2 parents 8225ce4 + 32a89b3 commit 4a23855
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/jlapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,22 +259,22 @@ DLLEXPORT jl_value_t *jl_get_image_file(void)
return jl_cstr_to_string(jl_compileropts.image_file);
}

DLLEXPORT const int jl_ver_major(void)
DLLEXPORT int jl_ver_major(void)
{
return JULIA_VERSION_MAJOR;
}

DLLEXPORT const int jl_ver_minor(void)
DLLEXPORT int jl_ver_minor(void)
{
return JULIA_VERSION_MINOR;
}

DLLEXPORT const int jl_ver_patch(void)
DLLEXPORT int jl_ver_patch(void)
{
return JULIA_VERSION_PATCH;
}

DLLEXPORT const int jl_ver_is_release(void)
DLLEXPORT int jl_ver_is_release(void)
{
return JULIA_VERSION_IS_RELEASE;
}
Expand Down
8 changes: 4 additions & 4 deletions src/julia.h
Original file line number Diff line number Diff line change
Expand Up @@ -1355,10 +1355,10 @@ extern DLLEXPORT jl_compileropts_t jl_compileropts;
// Version information
#include "julia_version.h"

DLLEXPORT extern const int jl_ver_major(void);
DLLEXPORT extern const int jl_ver_minor(void);
DLLEXPORT extern const int jl_ver_patch(void);
DLLEXPORT extern const int jl_ver_is_release(void);
DLLEXPORT extern int jl_ver_major(void);
DLLEXPORT extern int jl_ver_minor(void);
DLLEXPORT extern int jl_ver_patch(void);
DLLEXPORT extern int jl_ver_is_release(void);
DLLEXPORT extern const char* jl_ver_string(void);

#ifdef __cplusplus
Expand Down

0 comments on commit 4a23855

Please sign in to comment.