aboutsummaryrefslogtreecommitdiffstats
path: root/include/gfx.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-06-02 18:57:22 +1000
committerinmarket <andrewh@inmarket.com.au>2013-06-02 18:57:22 +1000
commit1c258a82738e145953fc9cf40c68dcce6db87d92 (patch)
treec151e882619714d696276ce29ef3388dce6e1866 /include/gfx.h
parentc2a4f9a5d616f5b18a965652d7492aacd377e5e2 (diff)
downloaduGFX-1c258a82738e145953fc9cf40c68dcce6db87d92.tar.gz
uGFX-1c258a82738e145953fc9cf40c68dcce6db87d92.tar.bz2
uGFX-1c258a82738e145953fc9cf40c68dcce6db87d92.zip
GOS updates
Diffstat (limited to 'include/gfx.h')
-rw-r--r--include/gfx.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/include/gfx.h b/include/gfx.h
index b2c84daf..7c82243b 100644
--- a/include/gfx.h
+++ b/include/gfx.h
@@ -35,6 +35,19 @@
#define TRUE -1
#endif
+/**
+ * @brief Mark a function as deprecated.
+ */
+#ifndef DEPRECATED
+ #if defined(__GNUC__) || defined(__MINGW32_) || defined(__CYGWIN__)
+ #define DEPRECATED(msg) __attribute__((deprecated(msg)))
+ #elif defined(_MSC_VER)
+ #define DEPRECATED(msg) __declspec(deprecated(msg))
+ #else
+ #define DEPRECATED(msg)
+ #endif
+#endif
+
/* gfxconf.h is the user's project configuration for the GFX system. */
#include "gfxconf.h"
@@ -199,8 +212,8 @@ extern "C" {
*/
void gfxInit(void);
- /* compatibility for old programs - throws a #warning */
- void gdispInit(void);
+ /* Compatibility for old programs */
+ void DEPRECATED("Use gfxInit() instead") gdispInit(void);
#ifdef __cplusplus
}