summaryrefslogtreecommitdiff
path: root/msvc/missing.h
diff options
context:
space:
mode:
authorToby Gray <toby.gray@realvnc.com>2013-01-16 02:07:29 +0000
committerToby Gray <toby.gray@realvnc.com>2013-01-23 00:40:18 +0000
commit244271931a782028fd9bc1cdcdb12200f65cf8d9 (patch)
treeeea17ea7e2e4c8638b26aa5a8984ef1b272a1566 /msvc/missing.h
parent790ffc78b008a03c95d10899f53997b504f55c72 (diff)
downloadlibusb-244271931a782028fd9bc1cdcdb12200f65cf8d9.tar.gz
WinCE: Add support for WinCE (sources)
Diffstat (limited to 'msvc/missing.h')
-rw-r--r--msvc/missing.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/msvc/missing.h b/msvc/missing.h
new file mode 100644
index 0000000..7846976
--- /dev/null
+++ b/msvc/missing.h
@@ -0,0 +1,29 @@
+/*
+ * Header file for missing WinCE functionality
+ * Copyright © 2012 RealVNC Ltd.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef MISSING_H
+#define MISSING_H
+
+/* Windows CE doesn't have any APIs to query environment variables.
+ *
+ * This contains a registry based implementation of getenv.
+ */
+char *getenv(const char *name);
+
+#endif