aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2018-05-05 11:13:12 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2018-05-05 11:13:12 +0800
commit61e0a974c07f38b8e42f226d68f22e2d1b26fa6d (patch)
tree0e346d7b12b63f9cd6ec1e22dc2441c4234d785e
parentef269036a9c21ee8ec5966f0662f4b6b328226ec (diff)
downloadlightsd-61e0a974c07f38b8e42f226d68f22e2d1b26fa6d.tar.xz
No longer using experimental/filesystem as I started using gcc 8.1.
-rw-r--r--ChangeLog3
-rw-r--r--README.md3
-rw-r--r--brightness_ctrl.hpp1
-rw-r--r--sensors.hpp4
4 files changed, 6 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index e2d76a1..5baa091 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2018-05-05 0.0.3-r1
+No longer using experimental/filesystem as I started using gcc 8.1.
+
2018-04-14 0.0.3
Added forced adjustment and minimum brightness.
Documentation(?)
diff --git a/README.md b/README.md
index 368e5d6..04d78ec 100644
--- a/README.md
+++ b/README.md
@@ -24,8 +24,7 @@ As this daemon manipulates sysfs, IT ONLY RUNS AS ROOT!
# Dependencies
- CMake
- - Reasonable new gcc or clang release that support C++17
- (Don't use trunk though as I'm still using `std::experimental::filesystem::v1`)
+ - gcc 8.x or clang 6 with C++17 support
# Building
Just `mkdir build && cd build && cmake .. && make`.
diff --git a/brightness_ctrl.hpp b/brightness_ctrl.hpp
index 57bcffd..5beb0ec 100644
--- a/brightness_ctrl.hpp
+++ b/brightness_ctrl.hpp
@@ -6,7 +6,6 @@
#include <thread>
#include <vector>
#include "sensor_als.hpp"
-namespace filesystem=std::experimental::filesystem::v1;
class BrightnessControl
{
private:
diff --git a/sensors.hpp b/sensors.hpp
index 86ff6a1..7b549ba 100644
--- a/sensors.hpp
+++ b/sensors.hpp
@@ -3,7 +3,7 @@
#include <cstdint>
#include <string>
#include <any>
-#include <experimental/filesystem>
+#include <filesystem>
#include <functional>
#include <unordered_map>
#include <tuple>
@@ -12,7 +12,7 @@
#define IIODEV_SYSFS_PATH_BASE "/sys/bus/iio/devices/iio:device"
#define DEV_PATH "/dev/iio:device"
-namespace filesystem=std::experimental::filesystem::v1;
+namespace filesystem=std::filesystem;
struct scan_t
{