cocoaTouch/otherSrc/CommodityFunctions.h
changeset 3374 0d522416d97f
parent 3373 c1ff724a5c34
child 3377 a3f0849f26bc
--- a/cocoaTouch/otherSrc/CommodityFunctions.h	Thu Apr 29 02:43:28 2010 +0000
+++ b/cocoaTouch/otherSrc/CommodityFunctions.h	Thu Apr 29 17:19:06 2010 +0000
@@ -34,3 +34,12 @@
 NSInteger randomPort ();
 void popError (const char *title, const char *message);
 
+
+#ifndef __IPHONE_3_2	// if iPhoneOS is 3.2 or greater then __IPHONE_3_2 will be defined
+typedef enum {
+    UIUserInterfaceIdiomPhone,           // iPhone and iPod touch style UI
+    UIUserInterfaceIdiomPad,             // iPad style UI
+} UIUserInterfaceIdiom;
+#define UI_USER_INTERFACE_IDIOM() UIUserInterfaceIdiomPhone
+#endif // ifndef __IPHONE_3_2
+