This repository was archived by the owner on Jun 18, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +19
-5
lines changed Expand file tree Collapse file tree 5 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
8
8
## [ Unreleased]
9
9
10
+ ### Fixed
11
+ - Fix missing ` #[cfg_attr(...] ` in ` psp_sys::kernel `
12
+
10
13
## [ v0.2.1] - 2018-09-12
11
14
### Added
12
15
- ` dox ` feature to disable linking to ` vitasdk ` stubs during compilation (use in ` docs.rs ` )
13
16
14
17
### Fixed
15
-
16
18
- Links in ` CHANGELOG.md ` file.
17
19
18
20
Original file line number Diff line number Diff line change 1
- #[ link( kind = "static" , name = "SceLibKernel_stub" ) ]
1
+ #[ cfg_attr(
2
+ not( feature = "dox" ) ,
3
+ link( kind = "static" , name = "SceLibKernel_stub" )
4
+ ) ]
2
5
extern "C" {
3
6
pub fn sceKernelExitProcess ( res : i32 ) -> i32 ;
4
7
}
Original file line number Diff line number Diff line change 1
- #[ link( kind = "static" , name = "SceLibKernel_stub" ) ]
1
+ #[ cfg_attr(
2
+ not( feature = "dox" ) ,
3
+ link( kind = "static" , name = "SceLibKernel_stub" )
4
+ ) ]
2
5
extern "C" {
3
6
pub fn sceKernelGetRandomNumber ( output : * mut :: void , size : u32 ) ;
4
7
}
Original file line number Diff line number Diff line change @@ -63,7 +63,10 @@ pub enum SceKernelMemoryType {
63
63
SCE_KERNEL_MEMORY_TYPE_NORMAL = 0xD0 ,
64
64
}
65
65
66
- #[ link( kind = "static" , name = "SceLibKernel_stub" ) ]
66
+ #[ cfg_attr(
67
+ not( feature = "dox" ) ,
68
+ link( kind = "static" , name = "SceLibKernel_stub" )
69
+ ) ]
67
70
extern "C" {
68
71
pub fn sceKernelAllocMemBlock (
69
72
name : * const u8 ,
Original file line number Diff line number Diff line change @@ -110,7 +110,10 @@ pub struct SceKernelSemaInfo {
110
110
pub numWaitThreads : i32 ,
111
111
}
112
112
113
- #[ link( kind = "static" , name = "SceLibKernel_stub" ) ]
113
+ #[ cfg_attr(
114
+ not( feature = "dox" ) ,
115
+ link( kind = "static" , name = "SceLibKernel_stub" )
116
+ ) ]
114
117
extern "C" {
115
118
116
119
// Mutexes
You can’t perform that action at this time.
0 commit comments