Stencil buffer issue

Is there any cross-platform way of enabling Stencil buffer ?

I use cocos2d-x 2.2 with Marmalade and get the next debug message: “Stencil buffer is not enabled”.