comparison lwlib/lwlib.c @ 70:131b0175ea99 r20-0b30

Import from CVS: tag r20-0b30
author cvs
date Mon, 13 Aug 2007 09:02:59 +0200
parents 56c54cf7c5b6
children c7528f8e288d
comparison
equal deleted inserted replaced
69:804d1389bcd6 70:131b0175ea99
13 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details. 15 GNU General Public License for more details.
16 16
17 You should have received a copy of the GNU General Public License 17 You should have received a copy of the GNU General Public License
18 along with XEmacs; see the file COPYING. If not, write to 18 along with GNU Emacs; see the file COPYING. If not, write to
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 19 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
20 Boston, MA 02111-1307, USA. */
21 20
22 #ifdef NeXT 21 #ifdef NeXT
23 #undef __STRICT_BSD__ /* ick */ 22 #undef __STRICT_BSD__ /* ick */
24 #endif 23 #endif
25 24
34 33
35 #if defined(__GNUC__) && !defined(alloca) 34 #if defined(__GNUC__) && !defined(alloca)
36 #define alloca __builtin_alloca 35 #define alloca __builtin_alloca
37 #endif 36 #endif
38 37
39 #if ((!__GNUC__) && !defined(__hpux)) && !defined(_AIX) && !defined (_SCO_DS) && !defined (__USLC__) && !defined(sinix) && !defined(_SEQUENT_) 38 #if ((!__GNUC__) && !defined(__hpux)) && !defined(_AIX) && !defined (_SCO_DS) && !defined (__USLC__) && !defined(sinix)
40 #include <alloca.h> 39 #include <alloca.h>
41 #endif 40 #endif
42 41
43 #ifdef __SUNPRO_C 42 #ifdef __SUNPRO_C
44 void *__builtin_alloca (unsigned int); 43 void *__builtin_alloca (unsigned int);
1252 1251
1253 /* set the keyboard focus */ 1252 /* set the keyboard focus */
1254 void 1253 void
1255 lw_set_keyboard_focus (Widget parent, Widget w) 1254 lw_set_keyboard_focus (Widget parent, Widget w)
1256 { 1255 {
1257 #if defined(NEED_MOTIF) && !defined(LESSTIF_VERSION) 1256 #ifdef NEED_MOTIF
1258 /* This loses with Lesstif v0.75a */
1259 xm_set_keyboard_focus (parent, w); 1257 xm_set_keyboard_focus (parent, w);
1260 #else 1258 #else
1261 XtSetKeyboardFocus (parent, w); 1259 XtSetKeyboardFocus (parent, w);
1262 #endif 1260 #endif
1263 } 1261 }