Skip to content

Commit

Permalink
system headers go first
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengxwen committed Mar 29, 2024
1 parent 01bb44c commit 8a50e4f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 17 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: gdsfmt
Type: Package
Title: R Interface to CoreArray Genomic Data Structure (GDS) Files
Version: 1.38.1
Date: 2024-01-19
Version: 1.39.2
Date: 2024-03-29
Depends: R (>= 2.15.0), methods
Suggests: parallel, digest, Matrix, crayon, RUnit, knitr, markdown, rmarkdown,
BiocGenerics
Expand Down
2 changes: 1 addition & 1 deletion inst/include/R_GDS2.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* \file R_GDS2.h
* \author Xiuwen Zheng [zhengxwen@gmail.com]
* \version 1.0
* \date 2014 - 2020
* \date 2014 - 2022
* \brief C interface to gdsfmt dynamic library
* \details
**/
Expand Down
2 changes: 1 addition & 1 deletion inst/include/R_GDS_CPP.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
#ifndef _HEADER_R_GDS_CPP_
#define _HEADER_R_GDS_CPP_

#include <R_GDS.h>
#include <cstdlib>
#include <cstring>
#include <cstdarg>
#include <climits>
#include <R_GDS.h>


namespace CoreArray
Expand Down
7 changes: 3 additions & 4 deletions inst/include/dTrait.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
//
// dTrait.h: Trait classes for elementary types
//
// Copyright (C) 2007-2018 Xiuwen Zheng
// Copyright (C) 2007-2024 Xiuwen Zheng
//
// This file is part of CoreArray.
//
Expand All @@ -29,7 +29,7 @@
* \file dTrait.h
* \author Xiuwen Zheng [zhengxwen@gmail.com]
* \version 1.0
* \date 2007 - 2018
* \date 2007 - 2024
* \brief Trait classes for elementary types
* \details
**/
Expand All @@ -38,11 +38,10 @@
#ifndef _HEADER_COREARRAY_TRAIT_
#define _HEADER_COREARRAY_TRAIT_

#include "dType.h"

#include <cfloat>
#include <limits>
#include <string>
#include "dType.h"


namespace CoreArray
Expand Down
17 changes: 8 additions & 9 deletions inst/include/dType.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
//
// dType.h: Fundamental types
//
// Copyright (C) 2007-2018 Xiuwen Zheng
// Copyright (C) 2007-2024 Xiuwen Zheng
//
// This file is part of CoreArray.
//
Expand All @@ -29,7 +29,7 @@
* \file dType.h
* \author Xiuwen Zheng [zhengxwen@gmail.com]
* \version 1.0
* \date 2007 - 2018
* \date 2007 - 2024
* \brief Fundamental types
* \details
**/
Expand All @@ -38,23 +38,22 @@
#ifndef _HEADER_COREARRAY_TYPE_
#define _HEADER_COREARRAY_TYPE_

#include "CoreDEF.h"

#ifndef __STDC_LIMIT_MACROS
# define __STDC_LIMIT_MACROS
#endif
#include <stdint.h>

#ifdef COREARRAY_POSIX
# // need 'ssize_t'
# include <unistd.h>
#endif

#ifdef __cplusplus
# // to define UTF8String, UTF16String and UTF32String
# include <string>
#endif

#include "CoreDEF.h"
#ifdef COREARRAY_POSIX
# // need 'ssize_t'
# include <unistd.h>
#endif


#ifdef __cplusplus
extern "C" {
Expand Down

0 comments on commit 8a50e4f

Please sign in to comment.