File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 3131project (modern.cpp.core)
3232
3333if (UNIX )
34- set (${PROJECT_NAME} _os_src unixservice/main.cpp)
34+ set (${PROJECT_NAME} _os_src Serial.cpp Serial.h unixservice/main.cpp)
3535endif ()
3636
3737add_library (${PROJECT_NAME}
@@ -44,8 +44,6 @@ add_library(${PROJECT_NAME}
4444 Exec.h
4545 KeyState.cpp
4646 KeyState.h
47- Serial.cpp
48- Serial.h
4947 StringExtras.cpp
5048 StringExtras.h
5149 Timing.cpp
Original file line number Diff line number Diff line change @@ -51,10 +51,12 @@ namespace vx {
5151#else
5252 m_resultCode = pclose ( _file );
5353#endif
54+ #ifndef _WIN32
5455 if ( WIFEXITED ( m_resultCode ) ) {
5556
5657 m_resultCode = WEXITSTATUS ( m_resultCode );
5758 }
59+ #endif
5860 }
5961
6062 int result () { return m_resultCode; }
Original file line number Diff line number Diff line change 3838namespace vx {
3939
4040 /* * Multiplier from nanoseconds to milliseconds to seconds and vice versa. */
41+ #ifdef _WIN32
42+ constexpr double multiplier = 1000.0 ;
43+ #else
4144 constexpr long long multiplier = 1000.0 ;
45+ #endif
4246
4347 void Timing::start () {
4448
You can’t perform that action at this time.
0 commit comments