⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wgui__include__config_8h-source.html

📁 一个小巧的嵌入式图形系统wGUI, 可以用VC编译
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>wgui_include_config.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; </center><hr><h1>wgui_include_config.h</h1><div class="fragment"><pre>00001 <span class="comment">// wgui_include_config.h</span>00002 <span class="comment">//</span>00003 <span class="comment">// An intermediate header file for including the correct config header based on the OS</span>00004 <span class="comment">//</span>00005 <span class="comment">//</span>00006 <span class="comment">// Copyright (c) 2002 Rob Wiskow</span>00007 <span class="comment">// rob-dev@boxedchaos.com</span>00008 <span class="comment">//</span>00009 <span class="comment">// This library is free software; you can redistribute it and/or</span>00010 <span class="comment">// modify it under the terms of the GNU Lesser General Public</span>00011 <span class="comment">// License as published by the Free Software Foundation; either</span>00012 <span class="comment">// version 2.1 of the License, or (at your option) any later version.</span>00013 <span class="comment">//</span>00014 <span class="comment">// This library is distributed in the hope that it will be useful,</span>00015 <span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span>00016 <span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>00017 <span class="comment">// Lesser General Public License for more details.</span>00018 <span class="comment">//</span>00019 <span class="comment">// You should have received a copy of the GNU Lesser General Public</span>00020 <span class="comment">// License along with this library; if not, write to the Free Software</span>00021 <span class="comment">// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>00022 <span class="comment">//</span>00023 00024 00025 <span class="preprocessor">#ifndef _WGUI_INCLUDE_CONFIG_H_</span>00026 <span class="preprocessor"></span><span class="preprocessor">#define _WGUI_INCLUDE_CONFIG_H_</span>00027 <span class="preprocessor"></span>00028 <span class="preprocessor">#include &lt;string&gt;</span>00029 00030 <span class="preprocessor">#ifdef WIN32</span>00031 <span class="preprocessor"></span>     <span class="comment">// For WIN32 compiling using Microsoft Visual C++</span>00032 <span class="preprocessor">     #include "wgui_win32_config.h"</span>00033 00034 <span class="preprocessor">     #ifndef DEBUG</span>00035 <span class="preprocessor"></span>          <span class="comment">// Fixes the warnings from xtree in Release builds</span>00036 <span class="preprocessor">          #pragma warning (disable : 4702)</span>00037 <span class="preprocessor"></span><span class="preprocessor">     #endif  // DEBUG</span>00038 <span class="preprocessor"></span>00039 <span class="preprocessor">     #ifdef MSVC6</span>00040 <span class="preprocessor"></span>          <span class="comment">// Fixes for building in MS Visual C++ 6</span>00041 <span class="preprocessor">          #define min _MIN</span>00042 <span class="preprocessor"></span><span class="preprocessor">          #define max _MAX</span>00043 <span class="preprocessor"></span><span class="preprocessor">          #pragma warning (disable : 4786)</span>00044 <span class="preprocessor"></span><span class="preprocessor">     #endif  // MSVC6</span>00045 <span class="preprocessor"></span>00046 <span class="preprocessor">     #include &lt;stdlib.h&gt;</span>  <span class="comment">// needed for the getenv() function</span>00047      <span class="comment">// OS specific constants</span>00048      <span class="keyword">static</span> <span class="keyword">const</span> std::string GLOBAL_CONFIG_PATH = <span class="stringliteral">"c:\\program files\\common files\\wgui\\"</span>;00049      <span class="keyword">static</span> <span class="keyword">const</span> std::string USER_CONFIG_PATH = <span class="stringliteral">"c:\\documents and settings\\"</span> + std::string(getenv(<span class="stringliteral">"USERNAME"</span>)) + <span class="stringliteral">"\\application data\\wgui\\"</span>;00050 <span class="preprocessor">#else  // WIN32</span>00051 <span class="preprocessor"></span>     <span class="comment">// For builds using the GNU tools</span>00052 <span class="preprocessor">     #include "wgui_config.h"</span>00053 00054      <span class="comment">// OS specific constants</span>00055      <span class="keyword">static</span> <span class="keyword">const</span> std::string GLOBAL_CONFIG_PATH = <span class="stringliteral">"/etc/wgui/"</span>;00056      <span class="keyword">static</span> <span class="keyword">const</span> std::string USER_CONFIG_PATH = <span class="stringliteral">"~/.wgui/"</span>;00057 <span class="preprocessor">#endif  // WIN32</span>00058 <span class="preprocessor"></span>00059 <span class="preprocessor">#endif  // _WGUI_INCLUDE_CONFIG_H_</span>00060 <span class="preprocessor"></span></pre></div><hr><address style="align: right;"><small>Generated on Sat Oct 25 12:43:26 2003 for wGui by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -