Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
6e56aa2f
Commit
6e56aa2f
authored
Jan 03, 2014
by
Cirilo Bernardo
Committed by
Wayne Stambaugh
Jan 03, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IDF3 wxDateTime patch to fix MinGW builds for missing localtime_r().
parent
deb3d54c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
13 deletions
+7
-13
idf.cpp
pcbnew/idf.cpp
+6
-12
menubar_pcbframe.cpp
pcbnew/menubar_pcbframe.cpp
+1
-1
No files found.
pcbnew/idf.cpp
View file @
6e56aa2f
...
...
@@ -492,30 +492,24 @@ bool IDF_BOARD::Setup( wxString aBoardName,
return
false
;
}
time_t
date
;
time
(
&
date
);
struct
tm
tdate
;
time
(
&
date
);
localtime_r
(
&
date
,
&
tdate
);
wxDateTime
tdate
(
time
(
NULL
)
);
fprintf
(
layoutFile
,
".HEADER
\n
"
"BOARD_FILE 3.0
\"
Created by KiCad %s
\"
"
" %.4
d/%.2d/%.2d.%.2d:%.2d:%.2d
1
\n
"
" %.4
u/%.2u/%.2u.%.2u:%.2u:%.2u
1
\n
"
"
\"
%s
\"
%s
\n
"
".END_HEADER
\n\n
"
,
TO_UTF8
(
GetBuildVersion
()
),
tdate
.
tm_year
+
1900
,
tdate
.
tm_mon
+
1
,
tdate
.
tm_mday
,
tdate
.
tm_hour
,
tdate
.
tm_min
,
tdate
.
tm_sec
,
tdate
.
GetYear
(),
tdate
.
GetMonth
()
+
1
,
tdate
.
GetDay
()
,
tdate
.
GetHour
(),
tdate
.
GetMinute
(),
tdate
.
GetSecond
()
,
TO_UTF8
(
brdname
.
GetFullName
()
),
useThou
?
"THOU"
:
"MM"
);
fprintf
(
libFile
,
".HEADER
\n
"
"BOARD_FILE 3.0
\"
Created by KiCad %s
\"
%.4d/%.2d/%.2d.%.2d:%.2d:%.2d 1
\n
"
".END_HEADER
\n\n
"
,
TO_UTF8
(
GetBuildVersion
()
),
tdate
.
tm_year
+
1900
,
tdate
.
tm_mon
+
1
,
tdate
.
tm_mday
,
tdate
.
tm_hour
,
tdate
.
tm_min
,
tdate
.
tm_sec
);
tdate
.
GetYear
(),
tdate
.
GetMonth
()
+
1
,
tdate
.
GetDay
()
,
tdate
.
GetHour
(),
tdate
.
GetMinute
(),
tdate
.
GetSecond
()
);
return
true
;
}
...
...
pcbnew/menubar_pcbframe.cpp
View file @
6e56aa2f
...
...
@@ -206,7 +206,7 @@ void PCB_EDIT_FRAME::ReCreateMenuBar()
// IDF3
AddMenuItem
(
submenuexport
,
ID_GEN_EXPORT_FILE_IDF3
,
_
(
"I&DFv3 Board Shape Export"
),
_
(
"Bas
ci
export of board shape only IDFv3 format"
),
_
(
"I&DFv3 Board Shape Export"
),
_
(
"Bas
ic
export of board shape only IDFv3 format"
),
KiBitmap
(
export_xpm
)
);
AddMenuItem
(
filesMenu
,
submenuexport
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment